From e747e6d8524e3146bb48dc304a713f309966b1c6 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 19 五月 2020 13:10:03 +0800
Subject: [PATCH] 新版本

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
index 7c3b7e4..55dbad5 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
@@ -418,7 +418,7 @@
             this.ShowProgressBar();
 
             //鑾峰彇缁戝畾鐩爣璁惧
-            List<CommonDevice> listDevice = await HdlDeviceBindLogic.Current.GetBindTargetDevice(this.deviceIASZone);
+            List<CommonDevice> listDevice = HdlDeviceBindLogic.Current.GetBindTargetDevice(this.deviceIASZone);
             if (listDevice == null)
             {
                 //鍏抽棴杩涘害鏉�
@@ -448,7 +448,7 @@
             }
 
             //鑾峰彇pir鐨勯厤缃俊鎭�
-            this.pirConfigure = await HdlDevicePirSensorLogic.Current.GetPirSensorLightSettion(deviceIASZone);
+            this.pirConfigure = HdlDevicePirSensorLogic.Current.GetPirSensorLightSettion(deviceIASZone);
             if (pirConfigure == null)
             {
                 //鍏抽棴杩涘害鏉�
@@ -520,7 +520,7 @@
 
             PickerView.ShowSecondary(listfirst, listSecond, (value1, value2) =>
              {
-                 btnTime.Text = listfirst[value1] + listSecond[value1][value2];
+                 btnTime.Text = listfirst[value1].TrimStart('0') + listSecond[value1][value2];
                  int minute = Convert.ToInt32(listfirst[value1].Substring(0, 2));
                  int second = Convert.ToInt32(listSecond[value1][value2].Substring(0, 2));
                  int delaySecond = minute * 60 + second;
@@ -541,7 +541,7 @@
         /// <summary>
         /// 淇濆瓨Pir浼犳劅鍣ㄦ暟鎹�
         /// </summary>
-        private async void SavePirSensorData()
+        private void SavePirSensorData()
         {
             if (this.isDataChanged == false)
             {
@@ -577,7 +577,7 @@
                 if (listDelDevice.Count > 0)
                 {
                     //鍒犻櫎鐩爣
-                    var listSucess = await HdlDeviceBindLogic.Current.DeleteDeviceTarget(deviceIASZone, listDelDevice);
+                    var listSucess = HdlDeviceBindLogic.Current.DeleteDeviceTarget(deviceIASZone, listDelDevice);
                     if (listSucess == null || listSucess.Count == 0)
                     {
                         //鍏抽棴杩涘害鏉�
@@ -587,7 +587,7 @@
                     if (listLightDevice.Count > 0)
                     {
                         //鍒犻櫎璋冨厜鍣ㄩ暈
-                        listSucess = await HdlDeviceBindLogic.Current.DeleteDeviceTarget(deviceIASZone, listLightDevice, 8);
+                        listSucess = HdlDeviceBindLogic.Current.DeleteDeviceTarget(deviceIASZone, listLightDevice, 8);
                         if (listSucess == null || listSucess.Count == 0)
                         {
                             //鍏抽棴杩涘害鏉�
@@ -612,7 +612,7 @@
                 if (listSaveDevice.Count > 0)
                 {
                     //缁戝畾鐩爣
-                    var listSucess = await HdlDeviceBindLogic.Current.BindDeviceTarget(deviceIASZone, listBind);
+                    var listSucess = HdlDeviceBindLogic.Current.BindDeviceTarget(deviceIASZone, listBind);
                     if (listSucess == null || listSucess.Count == 0)
                     {
                         //鍏抽棴杩涘害鏉�
@@ -622,7 +622,7 @@
                     if (listLightDevice.Count > 0)
                     {
                         //缁戝畾璋冨厜闀�
-                        listSucess = await HdlDeviceBindLogic.Current.BindDeviceTarget(deviceIASZone, listLightDevice, 8);
+                        listSucess = HdlDeviceBindLogic.Current.BindDeviceTarget(deviceIASZone, listLightDevice, 8);
                         if (listSucess == null || listSucess.Count == 0)
                         {
                             //鍏抽棴杩涘害鏉�
@@ -633,7 +633,7 @@
                 }
             }
             //淇濆瓨pir閰嶇疆淇℃伅
-            var result = await HdlDevicePirSensorLogic.Current.SetPirSensorSettion(this.deviceIASZone, this.pirConfigure);
+            var result = HdlDevicePirSensorLogic.Current.SetPirSensorSettion(this.deviceIASZone, this.pirConfigure);
             if (result == false)
             {
                 //鍏抽棴杩涘害鏉�

--
Gitblit v1.8.0