using System;
using System.Collections.Generic;
using System.Drawing;
namespace HStation.Desktop
{
///
/// 功能元素
///
public class FuncElement
{
public FuncElement() { }
public FuncElement(string name)
{
this.Id = Guid.NewGuid().ToString();
this.Name = name;
this.IsGroup = true;
}
public FuncElement(string name, List elements = null)
{
this.Id = Guid.NewGuid().ToString();
this.Name = name;
this.IsGroup = true;
this.FuncElements = elements;
}
public FuncElement(string name, List elements = null, Image img = null)
{
this.Id = Guid.NewGuid().ToString();
this.Name = name;
this.IsGroup = true;
this.Image = img;
this.FuncElements = elements;
}
public FuncElement(string name, string dllFileName, string controlFullName, Image img = null)
{
this.Id = Guid.NewGuid().ToString();
this.Name = name;
this.DllFileName = dllFileName;
this.ControlFullName = controlFullName;
//this.SurfaceGuid = new WinFrmUI.SurfaceGuid(modular, name);
this.Image = img;
this.IsGroup = false;
}
///
/// 标识
///
public string Id { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 图片
///
public Image Image { get; set; }
///
/// DLL 文件名称
///
public string DllFileName { get; set; }
///
/// 控件全名称
///
public string ControlFullName { get; set; }
///
/// 自身标识
///
//public WinFrmUI.SurfaceGuid SurfaceGuid { get; set; }
///
/// 展开
///
public bool Expand { get; set; }
///
/// 分组
///
public bool IsGroup { get; set; }
///
/// 子元素列表
///
public List FuncElements { get; set; }
}
}