From 4ce5177289b1d34e467de9d8790836559cc5a09e Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 18 十一月 2019 18:06:28 +0800
Subject: [PATCH] 合并了全部的代码

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
index 6f43d97..75e2850 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
@@ -798,6 +798,11 @@
             if (this.dicRowInfo.ContainsKey(deviceAddr) == false)
             {
                 var localDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceAddr);
+                if (localDevice.Count == 0)
+                {
+                    //鍏ョ綉涔嬪悗锛屽張鎶婂畠鍒犱簡
+                    return;
+                }
                 var rowNewInfo = new DeviceObjRowInfo();
                 rowNewInfo.DeviceMac = deviceAddr;
                 rowNewInfo.MacName = Common.LocalDevice.Current.GetDeviceMacName(localDevice[0]);
@@ -806,8 +811,6 @@
 
                 //鍒涘缓鏂扮殑琛�
                 this.AddDeviceMenuRow(deviceAddr);
-
-                return;
             }
         }
 

--
Gitblit v1.8.0