From 9c6bd67d66859e48f0e794cd2746aef9310ce71d Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期五, 13 十二月 2019 18:01:37 +0800
Subject: [PATCH] 2019-12-13-2

---
 ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockAddDevice.cs |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockAddDevice.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockAddDevice.cs
index 57cb725..155d207 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockAddDevice.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockAddDevice.cs
@@ -697,6 +697,7 @@
             };
             flMain.AddChidren(devicefra);
             devicefra.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
+
             #region  -------鍙栨秷   瀹屾垚
             var timetype = new RowLayout
             {
@@ -746,7 +747,6 @@
             };
             timetype.AddChidren(Btncomplete);
             #endregion
-
 
             string SelectedDeviceStatusaction = "no";
             actionsInfo.Add("LinkType", 0);
@@ -1057,6 +1057,8 @@
                         openframelayout.AddChidren(horizontalSeekBarRow);
                         var horizontalSeekBarVol = new DiyImageSeekBar
                         {
+                            Y = openrowlayout.Bottom,
+                            X = Application.GetRealWidth(80),
                             Width = Application.GetRealWidth(920),
                             Height = Application.GetRealHeight(160),
                             IsProgressTextShow = true,//鏄剧ず鐧惧垎姣�
@@ -1068,7 +1070,7 @@
                             ProgressTextSize = 13,//鏄剧ず鐧惧垎姣斿瓧浣撳ぇ灏� 
                             SeekBarViewHeight = Application.GetRealHeight(10),//杩涘害鏉$殑楂樺害
                         };
-                        horizontalSeekBarRow.AddChidren(horizontalSeekBarVol);
+                        openframelayout.AddChidren(horizontalSeekBarVol);
 
                         #endregion
 
@@ -1141,7 +1143,7 @@
                         #endregion
 
                         int Progressvalue = 100;
-                        horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) =>
+                        EventHandler<int> progressclick = (sender, e) =>
                         {
                             SelectedDeviceStatusaction = "yes";
                             Progressvalue = horizontalSeekBarVol.Progress;
@@ -1159,6 +1161,8 @@
                             switchdictionary.Add("Data1", lightbrightnessvalue.ToString());
 
                         };
+                        horizontalSeekBarVol.OnProgressChangedEvent += progressclick;
+                        horizontalSeekBarVol.OnStopTrackingTouchEvent += progressclick;
                         ///纭浜嬩欢
                         EventHandler<MouseEventArgs> openclick = (sender, e) =>
                         {
@@ -1355,6 +1359,8 @@
                         openframelayout.AddChidren(horizontalSeekBarRow);
                         var horizontalSeekBarVol = new DiyImageSeekBar
                         {
+                            Y = openrowlayout.Bottom,
+                            X = Application.GetRealWidth(80),
                             Width = Application.GetRealWidth(920),
                             Height = Application.GetRealHeight(160),
                             IsProgressTextShow = true,//鏄剧ず鐧惧垎姣�
@@ -1366,7 +1372,7 @@
                             ProgressTextSize = 13,//鏄剧ず鐧惧垎姣斿瓧浣撳ぇ灏� 
                             SeekBarViewHeight = Application.GetRealHeight(10),//杩涘害鏉$殑楂樺害
                         };
-                        horizontalSeekBarRow.AddChidren(horizontalSeekBarVol);
+                        openframelayout.AddChidren(horizontalSeekBarVol);
 
                         #endregion
 
@@ -1406,7 +1412,7 @@
 
                         #endregion
                         int Progressvalue = 100;
-                        horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) =>
+                        EventHandler<int> progressclick = (sender, e) =>
                         {
                             SelectedDeviceStatusaction = "yes";
                             Progressvalue = horizontalSeekBarVol.Progress;
@@ -1422,6 +1428,8 @@
                             switchdictionary.Add("Data2", horizontalSeekBarVol.Progress.ToString());
 
                         };
+                        horizontalSeekBarVol.OnProgressChangedEvent += progressclick;
+                        horizontalSeekBarVol.OnStopTrackingTouchEvent += progressclick;
                         ///纭浜嬩欢
                         EventHandler<MouseEventArgs> openclick = (sender, e) =>
                         {
@@ -1741,7 +1749,6 @@
                         }
                     }
                     break;
-
                 case DeviceType.Thermostat:
                     {
 
@@ -2066,7 +2073,6 @@
 
 
             }
-
             Btncomplete.MouseUpEventHandler += (sender, e) =>
             {
 

--
Gitblit v1.8.0