From b3e96fce4cc01113128ddf8e0a18fc19594a9e56 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 05 十二月 2019 18:38:30 +0800
Subject: [PATCH] 一个新的版本

---
 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs |   26 +++-----------------------
 1 files changed, 3 insertions(+), 23 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs
index 89680e3..9bd9829 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs
@@ -394,6 +394,8 @@
                 {
                     //闇�瑕侀噸鏂扮粦瀹�
                     this.dicZbGatewayDiv[listId[i]] = 2;
+                    //鑾峰彇鍒颁簡鏂扮綉鍏�
+                    this.newGatewayGetting = true;
                 }
 
                 if (mode == GatewayBindMode.First)
@@ -415,29 +417,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.DisConnectLocalMqttClient("Search");
-                }
-            }
-            if (UserCenterResourse.listActionFormId.Contains("UserMainForm") == false)
-            {
-                //鍒锋柊涓婚〉
-                UserView.UserPage.Instance.Fresh();
-            }
-
+          
             base.CloseFormBefore();
         }
 

--
Gitblit v1.8.0