tangxu
2024-11-25 0a2c59670b82d61d3fa79f51a54e82e7bd0134c4
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
77
78
79
80
#region Imports
 
using DPumpHydr.WinFrmUI.RLT.Controls;
using DPumpHydr.WinFrmUI.RLT.Enum.Metro;
using DPumpHydr.WinFrmUI.RLT.Manager;
using System.ComponentModel;
using System.ComponentModel.Design;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Action.Metro
{
    #region MetroCheckBoxActionListAction
 
    internal class MetroCheckBoxActionList : DesignerActionList
    {
        private readonly MetroCheckBox _metroCheckBox;
 
        public MetroCheckBoxActionList(IComponent component) : base(component)
        {
            _metroCheckBox = (MetroCheckBox)component;
        }
 
        public Style Style
        {
            get => _metroCheckBox.Style;
            set => _metroCheckBox.Style = value;
        }
 
        public string ThemeAuthor => _metroCheckBox.ThemeAuthor;
 
        public string ThemeName => _metroCheckBox.ThemeName;
 
        public MetroStyleManager StyleManager
        {
            get => _metroCheckBox.StyleManager;
            set => _metroCheckBox.StyleManager = value;
        }
 
        public string Text
        {
            get => _metroCheckBox.Text;
            set => _metroCheckBox.Text = value;
        }
 
        public bool Checked
        {
            get => _metroCheckBox.Checked;
            set => _metroCheckBox.Checked = value;
        }
 
        public SignStyle SignStyle
        {
            get => _metroCheckBox.SignStyle;
            set => _metroCheckBox.SignStyle = value;
        }
 
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new()
            {
                new DesignerActionHeaderItem("Metro"),
                new DesignerActionPropertyItem("StyleManager", "StyleManager", "Metro", "Gets or sets the stylemanager for the control."),
                new DesignerActionPropertyItem("Style", "Style", "Metro", "Gets or sets the style."),
 
                new DesignerActionHeaderItem("Informations"),
                new DesignerActionPropertyItem("ThemeName", "ThemeName", "Informations", "Gets or sets the The Theme name associated with the theme."),
                new DesignerActionPropertyItem("ThemeAuthor", "ThemeAuthor", "Informations", "Gets or sets the The Author name associated with the theme."),
 
                new DesignerActionHeaderItem("Appearance"),
                new DesignerActionPropertyItem("Text", "Text", "Appearance", "Gets or sets the The text associated with the control."),
                new DesignerActionPropertyItem("Checked", "Checked", "Appearance", "Gets or sets a value indicating whether the control is checked."),
                new DesignerActionPropertyItem("SignStyle", "SignStyle", "Appearance", "Gets or sets the the sign style of check.")
            };
            return items;
        }
    }
 
    #endregion
}