using System; using System.Collections.Generic; using System.Drawing; namespace IStation { /// /// 功能元素 /// public class FuncElement { public FuncElement() { } public FuncElement(string name, bool isGroup, List elements = null) { this.ID = Guid.NewGuid().ToString(); this.Name = name; this.FuncElements = elements; this.IsGroup = isGroup; } public FuncElement(string name, string dllFileName, string controlFullName, WinFrmUI.SurfaceGuid sguid, Image img = null) { this.ID = Guid.NewGuid().ToString(); this.Name = name; this.DllFileName = dllFileName; this.ControlFullName = controlFullName; this.SurfaceGuid = sguid; 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; } } }