using System.Collections.Generic; using System.Drawing; using TProduct.WinFrmUI; namespace TProduct.DesktopMain { /// /// 功能元素 /// public class FuncElement { public FuncElement() { } public FuncElement(string name, List elements = null) { this.Id = SnowflakeIdHelper.GetId(); this.Name = name; this.FuncElements = elements; } public FuncElement(string name, string dllFileName, string controlFullName, SurfaceGuid sguid, Image img = null) { this.Id = SnowflakeIdHelper.GetId(); this.Name = name; this.DllFileName = dllFileName; this.ControlFullName = controlFullName; this.SurfaceGuid = sguid; this.Image = img; } /// /// 标识 /// public string Id { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 图片 /// public Image Image { get; set; } /// /// /// public bool IsDocumentPage { get; set; } = true; /// /// DLL 文件名称 /// public string DllFileName { get; set; } /// /// 控件全名称 /// public string ControlFullName { get; set; } /// /// 自身标识 /// public SurfaceGuid SurfaceGuid { get; set; } /// /// 子元素列表 /// public List FuncElements { get; set; } } }