From dc6493db59dcb0893eac50b72122f94c24056b3f Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 12 十月 2020 14:35:39 +0800
Subject: [PATCH] 新版本

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

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
index 6e555b0..7ab4139 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
@@ -710,7 +710,7 @@
             }
             //濡傛灉鏄湪绾跨殑
             var nowGateway = HdlGatewayLogic.Current.GetLocalGateway(GatewayResourse.NowSelectGatewayId);
-            if (HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(nowGateway) == true)
+            if (HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(nowGateway) == true)
             {
                 //妫�娴嬪箍鎾埌鐨勮繖涓綉鍏虫槸鍚︽嫢鏈変綇瀹匢D
                 ZbGateway realWay = null;
@@ -742,7 +742,7 @@
             }
 
             //鑾峰彇鍏ㄩ儴璁惧
-            int result = LocalDevice.Current.SetDeviceToMemmoryByGateway(nowGateway, false);
+            int result = LocalDevice.Current.SetDeviceToMemmoryByGateway(nowGateway.GwId, false);
             if (this.Parent == null)
             {
                 return;
@@ -783,7 +783,7 @@
                 {
                     if (this.gatewayViewRow != null && this.gatewayViewRow.zbGatewayId == selectGwId)
                     {
-                        bool online = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbGateway);
+                        bool online = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbGateway);
                         //鍒锋柊鎺т欢鍦ㄧ嚎鐘舵��
                         this.gatewayViewRow?.RefreshOnlineStatu();
                         //鏍规嵁缃戝叧鍦ㄧ嚎鐘舵�佸埛鏂拌澶囧湪绾跨姸鎬�
@@ -1271,7 +1271,7 @@
                 {
                     btnName.Text = HdlGatewayLogic.Current.GetGatewayName(zbway);
                     //鍦ㄧ嚎鐘舵��
-                    this.isOnline = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbway);
+                    this.isOnline = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbway);
                     if (this.isOnline == false)
                     {
                         btnName.TextColor = UserCenterColor.Current.TextGrayColor1;
@@ -1340,7 +1340,7 @@
                     return;
                 }
                 //鍦ㄧ嚎鐘舵��
-                bool statu = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbway);
+                bool statu = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbway);
                 if (this.isOnline != statu)
                 {
                     this.isOnline = statu;

--
Gitblit v1.8.0