| | |
| | | |
| | | colorPicker = new ColorPicker() |
| | | { |
| | | Gravity = Gravity.Center, |
| | | ColorImagePath = "FunctionIcon/Light/ColorWheel.png", |
| | | }; |
| | | framePickerBack.AddChidren(colorPicker); |
| | |
| | | DriverLayer.Control.Ins.SendReadCommand(function); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | |
| | | |
| | | new System.Threading.Thread(() => { |
| | | while (true) |
| | | { |
| | | System.Threading.Thread.Sleep(1000); |
| | | if (curDimmerStatus) |
| | | { |
| | | continue; |
| | | } |
| | | if (onDimmerBar) |
| | | { |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(function); |
| | | curDimmerStatus = true; |
| | | } |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | } |
| | | } |
| | | } |