From e985d1b79937c41ebdaa4caa2974ec03929db915 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 20 一月 2021 11:43:54 +0800
Subject: [PATCH] 20200120:ios 红外包蓝牙sdk对接

---
 HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs |   60 ++++++++++++++++++++++++++++++------------------------------
 1 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs
index bf6a68b..533498c 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs
@@ -184,23 +184,23 @@
                 CurtainAnimation(curtain.percent);
             };
 
-            btnMinusSignIcon.MouseUpEventHandler = (sender, e) =>
-            {
-                curtain.percent--;
-                controlBar.Progress = curtain.percent;
-                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString());
-                DriverLayer.Control.Ins.SendWriteCommand(curtain, d);
-            };
+            //btnMinusSignIcon.MouseUpEventHandler = (sender, e) =>
+            //{
+            //    curtain.percent--;
+            //    controlBar.Progress = curtain.percent;
+            //    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
+            //    d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString());
+            //    DriverLayer.Control.Ins.SendWriteCommand(curtain, d);
+            //};
 
-            btnPlusSgnIcon.MouseUpEventHandler = (sender, e) =>
-            {
-                curtain.percent++;
-                controlBar.Progress = curtain.percent;
-                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString());
-                DriverLayer.Control.Ins.SendWriteCommand(curtain, d);
-            };
+            //btnPlusSgnIcon.MouseUpEventHandler = (sender, e) =>
+            //{
+            //    curtain.percent++;
+            //    controlBar.Progress = curtain.percent;
+            //    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
+            //    d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString());
+            //    DriverLayer.Control.Ins.SendWriteCommand(curtain, d);
+            //};
 
             //curtainSeekBar.OnProgressChangedEvent = (sender, e) =>
             //{
@@ -220,7 +220,7 @@
             //};
             curtainSeekBar.OnStopTrackingTouchEvent = (sender, e) =>
             {
-                controlBar.Progress = curtainSeekBar.Progress;
+                //controlBar.Progress = curtainSeekBar.Progress;
                 new System.Threading.Thread(() =>
                 {
                     curtain.percent = e;
@@ -249,19 +249,19 @@
             //    { IsBackground = true }.Start();
             //};
 
-            controlBar.OnStopTrackingTouchEvent = (sender, e) =>
-            {
-                curtainSeekBar.Progress = controlBar.Progress;
-                new System.Threading.Thread(() =>
-                {
-                    curtain.percent = e;
-                    curtain.refreshTime = DateTime.Now;
-                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                    d.Add("percent", curtain.percent.ToString());
-                    DriverLayer.Control.Ins.SendWriteCommand(curtain, d);
-                })
-                { IsBackground = true }.Start();
-            };
+            //controlBar.OnStopTrackingTouchEvent = (sender, e) =>
+            //{
+            //    curtainSeekBar.Progress = controlBar.Progress;
+            //    new System.Threading.Thread(() =>
+            //    {
+            //        curtain.percent = e;
+            //        curtain.refreshTime = DateTime.Now;
+            //        System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
+            //        d.Add("percent", curtain.percent.ToString());
+            //        DriverLayer.Control.Ins.SendWriteCommand(curtain, d);
+            //    })
+            //    { IsBackground = true }.Start();
+            //};
 
         }
     }

--
Gitblit v1.8.0