wxr
2020-11-24 33470790ac0069c7734fb1a5b8b07350950c6dfe
HDL_ON/UI/UI2/FuntionControlView/Light/RGBPageBLL.cs
@@ -68,7 +68,7 @@
                    //Control.Send(CommandType_A.write, this.light);
                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                    d.Add("color", (light.redColor * 256 * 256 + light.greenColor * 256 + light.blueColor).ToString());
                    Control.ins.SendWriteCommand(light, d);
                    Control.Ins.SendWriteCommand(light, d);
                }
            };
            colorPicker.MouseUpEventHandler = (sender, e) =>
@@ -103,7 +103,7 @@
                light.brightness = dimmerBar.Progress;
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add("brightness", light.brightness.ToString());
                Control.ins.SendWriteCommand(light, d);
                Control.Ins.SendWriteCommand(light, d);
                light.fadeTime = barFadeTime.Progress;
                //Control.Send(CommandType_A.write, light);
            };
@@ -122,7 +122,7 @@
                    //Control.Send(CommandType_A.write, this.light);
                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                    d.Add("brightness", light.brightness.ToString());
                    Control.ins.SendWriteCommand(light, d);
                    Control.Ins.SendWriteCommand(light, d);
                }
                else
                {
@@ -134,7 +134,7 @@
                            //Control.Send(CommandType_A.write, light);
                            System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                            d.Add("brightness", light.brightness.ToString());
                            Control.ins.SendWriteCommand(light, d);
                            Control.Ins.SendWriteCommand(light, d);
                        })
                        { IsBackground = true }.Start();
                    }
@@ -171,7 +171,7 @@
                    light.trait_on_off.value = btnSwitch.IsSelected ? "on" : "off";
                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                    d.Add("on_off", light.trait_on_off.value.ToString());
                    Control.ins.SendWriteCommand(light, d);
                    Control.Ins.SendWriteCommand(light, d);
                })
                { IsBackground = true }.Start();
            };
@@ -187,7 +187,7 @@
                btnCurColor.BackgroundColor = 0xFFFFFFFF;
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add("color", "FFFFFF");
                Control.ins.SendWriteCommand(light, d);
                Control.Ins.SendWriteCommand(light, d);
            };
        }