From a41a96b555f3aabf243741352bded5f28cd0ced5 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 21 七月 2020 15:56:32 +0800
Subject: [PATCH] 新版本

---
 ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
index b6f5a1b..4e2b13b 100755
--- a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
+++ b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
@@ -159,7 +159,7 @@
             btnHouseName.TextColor = ZigbeeColor.Current.GXCTextDeepBlackColor;
             btnHouseName.IsBold = true;
             btnHouseName.Text = Config.Instance.Home.Name;
-            btnHouseName.Width = btnHouseName.GetRealWidthByText();
+            btnHouseName.Width = btnHouseName.GetRealWidthByText() + Application.GetRealWidth(100);
             this.listBodyContr.frameTable.AddChidren(btnHouseName);
 
             //鍒囨崲浣忓畢
@@ -1106,6 +1106,11 @@
                             //浼犳劅鍣ㄤ笉闇�瑕佸睘鎬т笂鎶�(浣嗘槸閭d釜鐞冨瀷浼犳劅鍣ㄥ眳鐒朵細灞炴�т笂鎶�)
                             this.dicDeviceCardControl[mainKeys].RefreshControlInfo(locadevice);
                         }
+                        else if (report.DeviceStatusReport.CluterID == 1)
+                        {
+                            //杩欎釜鏄數閲忔帹閫�
+                            this.dicDeviceCardControl[mainKeys].RefreshBatteryStatu();
+                        }
                     }
                 }, ShowErrorMode.NO);
             });

--
Gitblit v1.8.0