| | |
| | | new System.Threading.Thread(() => { |
| | | while (true) |
| | | { |
| | | System.Threading.Thread.Sleep(500); |
| | | System.Threading.Thread.Sleep(500); |
| | | System.Threading.Thread.Sleep(1000); |
| | | if (curDimmerStatus) |
| | | { |
| | | continue; |
| | | } |
| | | if (onDimmerBar) |
| | | { |
| | | onDimmerBar = false; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(function); |
| | | curDimmerStatus = true; |
| | | } |
| | | } |
| | | }) |
| | |
| | | btnShortcut.UnSelectedImagePath = "FunctionIcon/Light/MeetingGuestsIconOn.png";
|
| | | };
|
| | |
|
| | | //会客 3000k
|
| | | //会客 4500k
|
| | | var btnMeet = new Button();
|
| | | btnMeet.X = btnMeetIcon.Right + Application.GetRealWidth(12);
|
| | | btnMeet.Y = btnMeetIcon.Y;
|
| | | btnMeet.Width = Application.GetRealWidth(100);
|
| | | btnMeet.Height = Application.GetRealWidth(24);
|
| | | btnMeet.Text = Language.StringByID(StringId.MeetingGuests) + " 3000K";
|
| | | btnMeet.Text = Language.StringByID(StringId.MeetingGuests) + " 4500K";
|
| | | btnMeet.TextSize = CSS_FontSize.TextFontSize;
|
| | | btnMeet.TextColor = CSS_Color.FirstLevelTitleColor;
|
| | | btnMeet.SelectedTextColor = CSS_Color.MainColor;
|
| | |
| | | frameWhite.AddChidren(btnMeet);
|
| | | btnMeet.MouseUpEventHandler += (sender, e) =>
|
| | | {
|
| | | barColorTemplatrue.Progress = 30;
|
| | | barColorTemplatrue.Progress = 45;
|
| | | function.SetAttrState(FunctionAttributeKey.CCT, barColorTemplatrue.Progress * 100);
|
| | | barColorTemplatrue.SetCustomText((barColorTemplatrue.Progress * 100) + "K");
|
| | | frameBack.Close(); |
| | |
| | | btnCozy.IsSelected = true; |
| | | btnCozyIcon.IsSelected = true; |
| | | } |
| | | if (function.GetAttrState(FunctionAttributeKey.CCT) == "3000") |
| | | if (function.GetAttrState(FunctionAttributeKey.CCT) == "4500") |
| | | { |
| | | btnMeet.IsSelected = true; |
| | | btnMeetIcon.IsSelected = true; |