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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#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 MetroToolTipActionListAction
 
    internal class MetroToolTipActionList : DesignerActionList
    {
        private readonly MetroToolTip _metroToolTip;
 
        public MetroToolTipActionList(IComponent component) : base(component)
        {
            _metroToolTip = (MetroToolTip)component;
        }
 
        public Style Style
        {
            get => _metroToolTip.Style;
            set => _metroToolTip.Style = value;
        }
 
        public string ThemeAuthor => _metroToolTip.ThemeAuthor;
 
        public string ThemeName => _metroToolTip.ThemeName;
 
        public MetroStyleManager StyleManager
        {
            get => _metroToolTip.StyleManager;
            set => _metroToolTip.StyleManager = value;
        }
 
        public bool Active
        {
            get => _metroToolTip.Active;
            set => _metroToolTip.Active = value;
        }
 
        public int AutomaticDelay
        {
            get => _metroToolTip.AutomaticDelay;
            set => _metroToolTip.AutomaticDelay = value;
        }
 
        public int AutoPopDelay
        {
            get => _metroToolTip.AutoPopDelay;
            set => _metroToolTip.AutoPopDelay = value;
        }
 
        public int InitialDelay
        {
            get => _metroToolTip.InitialDelay;
            set => _metroToolTip.InitialDelay = value;
        }
 
        public bool StripAmpersands
        {
            get => _metroToolTip.StripAmpersands;
            set => _metroToolTip.StripAmpersands = value;
        }
 
        public bool UseAnimation
        {
            get => _metroToolTip.UseAnimation;
            set => _metroToolTip.UseAnimation = value;
        }
 
        public bool UseFading
        {
            get => _metroToolTip.UseFading;
            set => _metroToolTip.UseFading = 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("Misc"),
                new DesignerActionPropertyItem("Active", "Active", "Misc", "Gets or sets a value indicating whether the ToolTip is currently active."),
                new DesignerActionPropertyItem("AutomaticDelay", "AutomaticDelay", "Misc", "Gets or sets the automatic delay for the ToolTip."),
                new DesignerActionPropertyItem("AutoPopDelay", "AutoPopDelay", "Misc", "Gets or sets the period of time the ToolTip remains visible if the pointer is stationary on a control with specified ToolTip text."),
                new DesignerActionPropertyItem("InitialDelay", "InitialDelay", "Misc", "Gets or sets the time that passes before the ToolTip appears."),
                new DesignerActionPropertyItem("StripAmpersands", "StripAmpersands", "Misc", "Gets or sets a value that determines how ampersand (&) characters are treated."),
                new DesignerActionPropertyItem("UseAnimation", "UseAnimation", "Misc", "Gets or sets a value determining whether an animation effect should be used when displaying the ToolTip."),
                new DesignerActionPropertyItem("UseFading", "UseFading", "Appearance", "Gets or sets a value determining whether a fade effect should be used when displaying the ToolTip."),
            };
            return items;
        }
    }
 
    #endregion
}