From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:25:59 +0800
Subject: [PATCH] 2024年07月25日17:24:45

---
 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