From d1ab259186e2341a0839c87300065e9bb5f14e9c Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 12 十一月 2019 10:42:14 +0800
Subject: [PATCH] 2019.11.12

---
 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewayListForm.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewayListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewayListForm.cs
index d05fd90..cc9c284 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewayListForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewayListForm.cs
@@ -85,6 +85,14 @@
         private void AddGatewayRow(VerticalListControl listView, ZbGateway gateway, bool addLine)
         {
             string gwid = HdlGatewayLogic.Current.GetGatewayId(gateway);
+            if (this.dicZbGatewayDiv[gwid] != 2)
+            {
+                //濡傛灉鏈湴娌℃湁,閭d箞搴旇鏄湪涔嬪悗鐨勭紪杈戠晫闈㈠垹闄や簡
+                if (HdlGatewayLogic.Current.IsGatewayExist(gwid) == false)
+                {
+                    return;
+                }
+            }
 
             var frameRow = new RowLayoutControl(listView.rowSpace / 2);
             listView.AddChidren(frameRow);

--
Gitblit v1.8.0