陈嘉乐
2020-11-30 ed3bfb7462d44747230437717e8673a5192f833f
HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
@@ -37,7 +37,6 @@
            actionRefresh = () => {
                btnFunctionName.Text = btnFunctionName_Out.Text = light.name;
                btnFromFloor_Out.Text = btnFromFoorAndRoom.Text = light.GetRoomListName();
                light.SaveFunctionData();
            };
        }
@@ -65,7 +64,7 @@
                    light.trait_on_off.value = btnSwitchIcon.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());
                    DriverLayer.Control.Ins.SendWriteCommand(light, d);
                    DriverLayer.Control.ins.SendWriteCommand(light, d);
                })
                { IsBackground = true }.Start();
            };
@@ -77,7 +76,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());
                    DriverLayer.Control.Ins.SendWriteCommand(light, d);
                    DriverLayer.Control.ins.SendWriteCommand(light, d);
                    //Control.Send(CommandType_A.write, light);
                })
                { IsBackground = true }.Start();