From 163777d8a2cb7cfa469f54a7042528870ebc10a3 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 09 十二月 2019 17:46:20 +0800 Subject: [PATCH] 一个新版本 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs | 27 ++++----------------------- 1 files changed, 4 insertions(+), 23 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs index 241a3f1..7834807 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs @@ -160,6 +160,7 @@ frameback.BackgroundImagePath = "Item/BottomButtonGround.png"; bodyFrameLayout.AddChidren(frameback); var btnReDo = new NormalViewControl(300, 65, true); + btnReDo.IsBold = true; btnReDo.TextColor = UserCenterColor.Current.White; btnReDo.TextSize = 16; btnReDo.Y = Application.GetRealHeight(49); @@ -394,6 +395,8 @@ { //闇�瑕侀噸鏂扮粦瀹� this.dicZbGatewayDiv[listId[i]] = 2; + //鑾峰彇鍒颁簡鏂扮綉鍏� + this.newGatewayGetting = true; } if (mode == GatewayBindMode.First) @@ -415,29 +418,7 @@ public override void CloseFormBefore() { ZigBee.Common.Application.IsSearchingGateway = false; - //鏂紑娌℃湁鎵ц缁戝畾鐨勭綉鍏崇殑mqtt - var list = new List<ZbGateway>(); - for (int i = 0; i < ZbGateway.GateWayList.Count; i++) - { - if (HdlGatewayLogic.Current.IsGatewayExist(ZbGateway.GateWayList[i]) == false) - { - list.Add(ZbGateway.GateWayList[i]); - } - } - if (list.Count > 0) - { - foreach (var way in list) - { - ZbGateway.GateWayList.RemoveAll((obj) => HdlGatewayLogic.Current.GetGatewayId(obj) == HdlGatewayLogic.Current.GetGatewayId(way)); - way.DisConnect("Search"); - } - } - if (UserCenterResourse.listActionFormId.Contains("UserMainForm") == false) - { - //鍒锋柊涓婚〉 - UserView.UserPage.Instance.Fresh(); - } - + base.CloseFormBefore(); } -- Gitblit v1.8.0