From fa6bcb2e9907772480f99205f36ec2a1ce735a22 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 09 一月 2020 14:11:07 +0800
Subject: [PATCH] 合并代码

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

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
index f9561e4..c790418 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
@@ -21,9 +21,9 @@
         /// </summary>
         private bool isDeviceThreadStart = false;
         /// <summary>
-        /// 绛夊緟璁惧鐨勫洖棣堢殑瓒呮椂鏃堕棿(鍗曚綅锛氱)
+        /// 绛夊緟璁惧鐨勫洖棣堢殑瓒呮椂鏃堕棿(鍗曚綅锛氱櫨姣)
         /// </summary>
-        private int waitDeviceTimeOut = 3;
+        private int waitDeviceTimeOut = 20;
         /// <summary>
         /// 涓婚瓒呮椂鐨勭嚎绋嬫槸鍚﹀紑鍚�
         /// </summary>
@@ -118,7 +118,6 @@
             this.btnProgressBar = new FrameLayout();
             btnProgressBar.Width = 0;
             btnProgressBar.Height = btnProRow.Height;
-            btnProgressBar.Radius = btnProRow.Radius;
             btnProgressBar.BackgroundColor = 0xfffb744a;
             btnProgressBar.Radius = (uint)Application.GetRealHeight(29) / 2;
             btnProRow.AddChidren(btnProgressBar);
@@ -227,7 +226,7 @@
                 }
 
                 //鍒锋柊瓒呮椂鏃堕棿
-                this.waitDeviceTimeOut = 3;
+                this.waitDeviceTimeOut = 20;
 
                 //鑾峰彇璁惧鐨勫浐瀹氬睘鎬�
                 HdlDeviceFixedAttributeLogic.Current.SetAllFixedAttributeToDevice(device);
@@ -264,12 +263,12 @@
                 while (this.waitDeviceTimeOut >= 0)
                 {
                     //绛夊緟涓嬩竴涓洖璺�
-                    System.Threading.Thread.Sleep(1000);
+                    System.Threading.Thread.Sleep(100);
                     this.waitDeviceTimeOut--;
                 }
                 //鍋滄鎺ユ敹
                 this.realGateway.GwResDataAction -= this.AdjustGatewayResultData;
-                System.Threading.Thread.Sleep(500);
+                System.Threading.Thread.Sleep(200);
 
                 //鐩墠灏卞紕涓�涓�
                 Application.RunOnMainThread(() =>
@@ -429,8 +428,8 @@
                 if (info.Result != 0)
                 {
                     //鍑虹幇鏈煡閿欒,璇烽噸鏂板叆缃�
-                    this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork));
-                    //HdlLogLogic.Current.WriteLog(-1, resultData);
+                    //this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork));
+                    HdlLogLogic.Current.WriteLog(-1, resultData);
                     return 2;
                 }
                 this.topTimeOut = topMaxTime;

--
Gitblit v1.8.0