From 5ec581e5d37b108fc9d59e89afd8e94e21b32080 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期二, 17 十月 2023 17:33:36 +0800 Subject: [PATCH] 2023年10月17日17:33:33 --- HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs index 4add0af..43c592a 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs @@ -199,7 +199,7 @@ { btnClose.IsSelected = true; btnOpen.IsSelected = false; - var d = new Dictionary<string, object>(); + var d = new Dictionary<string, string>(); d.Add(FunctionAttributeKey.OnOff, "off"); group.Control(d); }; @@ -208,7 +208,7 @@ btnClose.IsSelected = false; btnOpen.IsSelected = true; - var d = new Dictionary<string, object>(); + var d = new Dictionary<string, string>(); d.Add(FunctionAttributeKey.OnOff, "on"); group.Control(d); }; @@ -311,7 +311,7 @@ { btnBrightnessText.Text = Language.StringByID(StringId.Brightness) + " " + e + "%"; - var d = new Dictionary<string, object>(); + var d = new Dictionary<string, string>(); d.Add(FunctionAttributeKey.Brightness, e.ToString()); group.Control(d); }; @@ -410,7 +410,7 @@ }; barColorTemplatrue.OnStopTrackingTouchEvent = (sender, e) => { - var d = new Dictionary<string, object>(); + var d = new Dictionary<string, string>(); d.Add(FunctionAttributeKey.CCT, (barColorTemplatrue.Progress * 100).ToString()); group.Control(d); }; @@ -498,7 +498,7 @@ var rgbTemp = new Light(); colorPicker.MouseUpEventHandler = (sender2, e2) => { - var d = new Dictionary<string, object>(); + var d = new Dictionary<string, string>(); d.Add(FunctionAttributeKey.RGB, rgbString); group.Control(d); }; @@ -506,7 +506,7 @@ { rgbString = (e2[0] + "," + e2[1] + "," + e2[2]).ToString(); btnCurColor.BackgroundColor = (uint)(0xFF000000 + rgbTemp.GetRGBcolor(rgbString)); - var d = new Dictionary<string, object>(); + var d = new Dictionary<string, string>(); d.Add(FunctionAttributeKey.RGB, rgbString); group.Control(d); }; -- Gitblit v1.8.0