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