chenn
2025-04-11 e98de937b28d42493de5dea6365c853d6b412d3c
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
#region Imports
 
using System.ComponentModel;
using static DPumpHydr.WinFrmUI.RLT.Util.CyberLibrary;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Child.Cyber
{
    #region CyberControllerChild
 
    public partial class CyberController : Component
    {
        #region Variables
 
        private bool Temp = false;
 
        #endregion
 
        #region Property Region
 
        [Category("Cyber")]
        [Description("Enable/Disable global RGB mode for all Cyber controls")]
        public bool Status
        {
            get => Temp;
            set
            {
                Temp = value;
                DrawEngine.TimerGlobalRGB(Temp);
            }
        }
 
        [Category("Cyber")]
        [Description("RGB Timer Update Interval")]
        public int TimerInterval
        {
            get => DrawEngine.GlobalRGB.Interval;
            set => DrawEngine.GlobalRGB.Interval = value;
        }
 
        #endregion
 
        #region Constructor Region
 
        public CyberController(IContainer Container)
        {
            Container.Add(this);
        }
 
        #endregion
    }
 
    #endregion
}