From 53cb8c211ecec2388a6583d32c5d2fe709285344 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 11 五月 2020 14:54:52 +0800
Subject: [PATCH] 上传

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

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
index b98b37a..8f904cd 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
@@ -912,7 +912,7 @@
         #region 鈻� 瀹炵幇澶栭儴璋冪敤_______________________
 
         /// <summary>
-        /// 娣诲姞鏂扮殑璁惧鍒扮晫闈㈡甯冧腑
+        /// 娣诲姞鏂扮殑璁惧鍒扮晫闈㈡甯冧腑(澶栭儴璋冪敤)
         /// </summary>
         /// <param name="deviceAddr">璁惧Mac鍦板潃</param>
         public void AddDeviceToFormTable(string deviceAddr)
@@ -940,6 +940,30 @@
 
                 //鍒涘缓鏂扮殑琛�
                 this.AddDeviceMenuRow(deviceAddr);
+
+                //璁板綍褰撳墠鐨勬鍦ㄦ搷浣滅殑璁惧鐨凪ac鍦板潃
+                this.nowActionDeviceMac = deviceAddr;
+            }
+        }
+
+        /// <summary>
+        /// 鍒锋柊鎸囧畾璁惧琛岀殑淇℃伅(澶栭儴璋冪敤)
+        /// </summary>
+        /// <param name="deviceAddr">璁惧Mac鍦板潃</param>
+        public void RefreshDeviceRow(string deviceAddr)
+        {
+            if (this.dicRowInfo.ContainsKey(deviceAddr) == true)
+            {
+                var row = this.dicRowInfo[deviceAddr];
+                row.MenuRow?.RefreshControlInfo(true);
+                //鏄庣粏
+                if (row.dicDetailRow != null)
+                {
+                    foreach (var detailRow in row.dicDetailRow.Values)
+                    {
+                        detailRow.RefreshControlInfo();
+                    }
+                }
             }
         }
 

--
Gitblit v1.8.0