From e6a26ee148587327478d9a82624a820c907b6e16 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 04 十一月 2020 14:58:15 +0800 Subject: [PATCH] 20201104 --- HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs index e16f14c..40b565c 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs @@ -86,7 +86,7 @@ curtain.percent = 0; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("on_off", curtain.trait_on_off.value.ToString()); - Control.SendWriteCommand(curtain, d); + DriverLayer.Control.ins.SendWriteCommand(curtain, d); }; btnCurtainStop.MouseDownEventHandler = (sender, e) => @@ -103,7 +103,7 @@ curtain.trait_on_off.value = "stop"; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("on_off", curtain.trait_on_off.value.ToString()); - Control.SendWriteCommand(curtain, d); + DriverLayer.Control.ins.SendWriteCommand(curtain, d); }; btnCurtainOpen.MouseUpEventHandler = (sender, e) => @@ -115,7 +115,7 @@ curtain.percent = 100; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("on_off", curtain.trait_on_off.value.ToString()); - Control.SendWriteCommand(curtain, d); + DriverLayer.Control.ins.SendWriteCommand(curtain, d); }; btnMinusSignIcon.MouseUpEventHandler = (sender, e) => @@ -124,7 +124,7 @@ controlBar.Progress = curtain.percent; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("percent", curtain.percent.ToString()); - Control.SendWriteCommand(curtain, d); + DriverLayer.Control.ins.SendWriteCommand(curtain, d); }; btnPlusSgnIcon.MouseUpEventHandler = (sender, e) => @@ -133,7 +133,7 @@ controlBar.Progress = curtain.percent; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("percent", curtain.percent.ToString()); - Control.SendWriteCommand(curtain, d); + DriverLayer.Control.ins.SendWriteCommand(curtain, d); }; //curtainSeekBar.OnProgressChangedEvent = (sender, e) => @@ -161,7 +161,7 @@ curtain.refreshTime = DateTime.Now; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("percent", curtain.percent.ToString()); - Control.SendWriteCommand(curtain, d); + DriverLayer.Control.ins.SendWriteCommand(curtain, d); }) { IsBackground = true }.Start(); }; @@ -192,7 +192,7 @@ curtain.refreshTime = DateTime.Now; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("percent", curtain.percent.ToString()); - Control.SendWriteCommand(curtain, d); + DriverLayer.Control.ins.SendWriteCommand(curtain, d); }) { IsBackground = true }.Start(); }; -- Gitblit v1.8.0