yangyin
2025-03-27 b0de14c2670b9ff0079dacfb4b7457b438368f11
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
#region Imports
 
using System;
using System.Drawing;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Child.Crown
{
    #region CrownListItemChild
 
    public class CrownListItem
    {
        #region Event Region
 
        public event EventHandler TextChanged;
 
        #endregion
 
        #region Field Region
 
        private string _text;
 
        #endregion
 
        #region Property Region
 
        public string Text
        {
            get => _text;
            set
            {
                _text = value;
 
                TextChanged?.Invoke(this, new EventArgs());
            }
        }
 
        public Rectangle Area { get; set; }
 
        //public Color TextColor { get; set; }
 
        public FontStyle FontStyle { get; set; }
 
        public Bitmap Icon { get; set; }
 
        public object Tag { get; set; }
 
        #endregion
 
        #region Constructor Region
 
        public CrownListItem()
        {
            //TextColor = ThemeProvider.Theme.Colors.LightText;
            FontStyle = FontStyle.Regular;
        }
 
        public CrownListItem(string text) : this()
        {
            Text = text;
        }
 
        #endregion
    }
 
    #endregion
}