From 1c7e1305f637ef910ccc5cd691255c34296c846b Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期三, 11 十二月 2019 15:34:53 +0800
Subject: [PATCH] 2019-12-11-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/DeviceStateCondition.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DeviceStateCondition.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DeviceStateCondition.cs
index ab65384..e2355c2 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/DeviceStateCondition.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/DeviceStateCondition.cs
@@ -244,7 +244,6 @@
                         foolrname.Text = btnfoolrname.Text;
                         flMain.RemoveFromParent();
                         var list = Send.GetRoomList(btnfoolrname.Tag.ToString());
-
                         AllRoomView(list, deviceTypeList, roomhorizontalScrol, devicetypehorizontalScrol);
                     };
                     foolrRowLayout.MouseUpEventHandler += foolrnameclick;
@@ -285,6 +284,7 @@
         /// </summary>
         void AllRoomView(List<Common.Room> roomlist, List<DeviceType> deviceTypeList, HorizontalScrolViewLayout roomhorizontalScrol, HorizontalScrolViewLayout devicetypehorizontalScrol)
         {
+            
             for (int i = 0; i < roomlist.Count; i++)
             {
                 var room = roomlist[i];
@@ -1471,8 +1471,10 @@
                             SeekBarViewHeight = Application.GetRealHeight(10),//杩涘害鏉$殑楂樺害
                         };
                         devicefra.AddChidren(horizontalSeekBarVol);
-                        horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) =>
+
+                        EventHandler<int> progressclick = (sender, e) =>
                         {
+
                             SelectedDeviceStatuscondition = "TemperatureSensor";
                             if (temperatureSensor.SensorDiv == 1)
                             {
@@ -1486,8 +1488,10 @@
                                 Btntemperaturevalue.Text = current + "<" + horizontalSeekBarVol.Progress.ToString() + "%";
                                 dictionary(deviceConditionsInfo, "AttriButeData1", horizontalSeekBarVol.Progress.ToString());//娓╁害鍊�
                             }
-                        };
 
+                        };
+                        horizontalSeekBarVol.OnProgressChangedEvent += progressclick;
+                        horizontalSeekBarVol.OnStopTrackingTouchEvent += progressclick;
 
 
                         if (temperatureSensor.SensorDiv == 1)

--
Gitblit v1.8.0