wxr
2020-08-11 2bec9c838d2d688025698de8ec1de401ffd7dd1f
HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPageBLL.cs
@@ -65,7 +65,10 @@
                new System.Threading.Thread(() =>
                {
                    fan.on_off = btnSwitch.IsSelected ? "on" : "off";
                    Control.Send(CommandType_A.write, this.fan);
                    //Control.Send(CommandType_A.write, this.fan);
                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                    d.Add("on_off", fan.on_off.ToString());
                    Control.SendWriteCommand(fan, d);
                })
                { IsBackground = true }.Start();
            };
@@ -76,7 +79,10 @@
                new System.Threading.Thread(() =>
                {
                    fan.on_off = btnSwitch.IsSelected ? "on" : "off";
                    Control.Send(CommandType_A.write, this.fan);
                    //Control.Send(CommandType_A.write, this.fan);
                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                    d.Add("on_off", fan.on_off.ToString());
                    Control.SendWriteCommand(fan, d);
                })
                { IsBackground = true }.Start();
            };
@@ -86,7 +92,10 @@
                new System.Threading.Thread(() =>
                {
                    fan.on_off = btnSwitch.IsSelected ? "on" : "off";
                    Control.Send(CommandType_A.write, this.fan);
                    //Control.Send(CommandType_A.write, this.fan);
                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                    d.Add("on_off", fan.on_off.ToString());
                    Control.SendWriteCommand(fan, d);
                })
                { IsBackground = true }.Start();
            };