tx
8 天以前 e0b138b3e057de6f57021e6c8963868f5c5acc5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System.Collections.Generic;
using System.Drawing;
using TProduct.WinFrmUI;
 
namespace TProduct.DesktopMain
{
    /// <summary>
    /// 功能元素
    /// </summary>
    public class FuncElement
    {
        public FuncElement() { }
 
        public FuncElement(string name, List<FuncElement> 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;
        }
 
        /// <summary>
        /// 标识
        /// </summary>
        public string Id { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 图片
        /// </summary>
        public Image Image { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public bool IsDocumentPage { get; set; } = true;
 
        /// <summary>
        /// DLL 文件名称
        /// </summary>
        public string DllFileName { get; set; }
 
        /// <summary>
        /// 控件全名称
        /// </summary>
        public string ControlFullName { get; set; }
 
        /// <summary>
        /// 自身标识
        /// </summary>
        public SurfaceGuid SurfaceGuid { get; set; }
 
        /// <summary>
        /// 子元素列表
        /// </summary>
        public List<FuncElement> FuncElements { get; set; }
 
    }
}