From a4924de3136289d10cabbf2f61a228387d44ded7 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 07 十一月 2019 13:48:36 +0800 Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs index aca18a0..184d68b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs @@ -31,7 +31,11 @@ /// <summary> /// 涓婚闂寸殑瓒呮椂鏃堕棿 -100:涓柇绾跨▼(鍗曚綅锛氱) /// </summary> - private int topTimeOut = 60; + private int topTimeOut = 120; + /// <summary> + /// 瓒呮椂鏈�澶ф椂闂� + /// </summary> + private int topMaxTime = 120; /// <summary> /// 鐢婚潰ID,鏍囪瀹冪敱鍝釜鐣岄潰璋冪敤骞舵墦寮�鐨� /// </summary> @@ -147,7 +151,6 @@ //娣诲姞鐩戣璁惧鏂颁笂鎶ョ殑浜嬩欢 GatewayResourse.NowSelectGateway.GwResDataAction += this.AdjustGatewayResultData; - //寮�鍚繛鎺ョ殑鍋囨兂鍔ㄧ敾鏁堟灉绾跨▼ this.StartConcetionAnimeteThread(); } @@ -366,7 +369,7 @@ { if (topic == gatewayId + "/Device/DeviceAnnounce_Respon") { - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //缃戝叧鍛婄煡瀹㈡埛绔湁璁惧澹版槑 this.SetDeviceProgressValue(1); return 2; @@ -383,7 +386,7 @@ HdlLogLogic.Current.WriteLog(-1, resultData); return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(2); return 2; @@ -400,7 +403,7 @@ HdlLogLogic.Current.WriteLog(-1, resultData); return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(3); return 2; @@ -417,7 +420,7 @@ //HdlLogLogic.Current.WriteLog(-1, resultData); return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(4); return 2; @@ -434,7 +437,7 @@ HdlLogLogic.Current.WriteLog(-1, resultData); return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(5); return 2; @@ -469,7 +472,7 @@ //鏂囨湰鏄剧ず btnProgressView.Text = ((int)(result * 100)) + "%"; //鏂囨湰鏄剧ず鐨勯偅涓浘鐗囨绉诲姩 - frameProgress.X = Application.GetRealWidth(262) + btnProgressBar.Right - frameProgress.Width / 2; + frameProgress.X = ControlCommonResourse.XXLeft + btnProgressBar.Right - frameProgress.Width / 2; }); } -- Gitblit v1.8.0