From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 17 十二月 2020 09:07:13 +0800
Subject: [PATCH] 新云端Ver1.3

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
index f1d8c4b..52239f1 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
@@ -245,6 +245,9 @@
                     }
                 }
 
+                //璇诲彇璁惧鐨勫叾浠栦俊鎭�
+                this.ReadDeviceOtherInfo(listDevice);
+
                 //鐩墠灏卞紕涓�涓�
                 HdlThreadLogic.Current.RunMain(() =>
                 {
@@ -546,6 +549,35 @@
 
         #endregion
 
+        #region 鈻� 涓�鑸柟娉昣__________________________
+
+        /// <summary>
+        /// 璇诲彇璁惧鐨勫叾浠栦俊鎭�
+        /// </summary>
+        /// <param name="listDevice"></param>
+        private void ReadDeviceOtherInfo(List<CommonDevice> listDevice)
+        {
+            var myTypeInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(listDevice);
+            if (myTypeInfo.BeloneType == DeviceBeloneType.A绐楀笜 && listDevice[0] is Rollershade)
+            {
+                HdlThreadLogic.Current.RunThread(async () =>
+                {
+                    for (int i = 1; i <= 3; i++)
+                    {
+                        //閲嶇疆绐楀笜
+                        var result = await HdlDeviceCurtainLogic.Current.RestoreCurtain((Rollershade)listDevice[0], i != 3 ? ShowErrorMode.NO : ShowErrorMode.YES);
+                        if (result == true)
+                        {
+                            return;
+                        }
+                        await System.Threading.Tasks.Task.Delay(1000);
+                    }
+                });
+            }
+        }
+
+        #endregion
+
         #region 鈻� 缁撴瀯浣揰____________________________
 
         /// <summary>

--
Gitblit v1.8.0