From 5727cf0b9b54da0a191dd1e23cb5abf21320fbff Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 25 十一月 2019 10:34:17 +0800 Subject: [PATCH] IOS使用新的项目名称 --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs | 42 ++++++++++++++++++++++++++---------------- 1 files changed, 26 insertions(+), 16 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs index e6ad61e..e714665 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,9 +151,6 @@ //娣诲姞鐩戣璁惧鏂颁笂鎶ョ殑浜嬩欢 GatewayResourse.NowSelectGateway.GwResDataAction += this.AdjustGatewayResultData; - - //寮�鍚繛鎺ョ殑鍋囨兂鍔ㄧ敾鏁堟灉绾跨▼ - this.StartConcetionAnimeteThread(); } #endregion @@ -366,7 +367,7 @@ { if (topic == gatewayId + "/Device/DeviceAnnounce_Respon") { - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //缃戝叧鍛婄煡瀹㈡埛绔湁璁惧澹版槑 this.SetDeviceProgressValue(1); return 2; @@ -379,10 +380,11 @@ if (info.Result != 0) { //鍑虹幇鏈煡閿欒,璇烽噸鏂板叆缃� - this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork)); - return -1; + //this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork)); + HdlLogLogic.Current.WriteLog(-1, resultData); + return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(2); return 2; @@ -395,10 +397,11 @@ if (info.Result != 0) { //鍑虹幇鏈煡閿欒,璇烽噸鏂板叆缃� - this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork)); - return -1; + //this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork)); + HdlLogLogic.Current.WriteLog(-1, resultData); + return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(3); return 2; @@ -412,9 +415,10 @@ { //鍑虹幇鏈煡閿欒,璇烽噸鏂板叆缃� this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork)); - return -1; + //HdlLogLogic.Current.WriteLog(-1, resultData); + return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(4); return 2; @@ -427,10 +431,11 @@ if (info.Result != 0) { //鍑虹幇鏈煡閿欒,璇烽噸鏂板叆缃� - this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork)); - return -1; + //this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uUnKnowErrorAndReAccessNetwork)); + HdlLogLogic.Current.WriteLog(-1, resultData); + return 2; } - this.topTimeOut = 60; + this.topTimeOut = topMaxTime; //璁剧疆杩涘害鍊� this.SetDeviceProgressValue(5); return 2; @@ -455,6 +460,11 @@ //杩涘害鏉� decimal result = value / 6; int width = (int)(result * Application.GetRealWidth(559)); + if (btnProgressBar.Width >= width) + { + //鏈変簺璁惧浼氫笂鎶ヤ袱娆�,杩欓噷涓嶈兘璁╁畠鐨勮繘搴︽潯寰�鍥炶蛋 + return; + } btnProgressBar.Width = width; //鏂囨湰鏄剧ず -- Gitblit v1.8.0