From 276b14dffead08293e951cc761be87436bdcf921 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 31 十月 2019 14:57:16 +0800
Subject: [PATCH] 2019-10-31-2

---
 ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs b/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs
index 763516c..4d7983c 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs
@@ -15,7 +15,7 @@
         Dictionary<string, string> deviceConditionsInfo = new Dictionary<string, string>();
         Dictionary<string, string> userdictionary = new Dictionary<string, string>();
 
-        public void Show(CommonDevice common, Dictionary<string, string> editdeviceConditionsInfo=null)
+        public async void Show(CommonDevice common, Dictionary<string, string> editdeviceConditionsInfo=null)
         {
             if (!edit)
             {
@@ -88,7 +88,11 @@
                 BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor,
             };
             this.AddChidren(middle);
-
+            if (Send.UserList.Count == 0)
+            {
+                var allMemberslist = await Send.AllMembers(common.DeviceAddr);
+                Send.UserList.AddRange(allMemberslist);
+            }
             foreach (var user in Send.UserList)
             {
 
@@ -384,5 +388,6 @@
 
             }
         }
+
     }
 }

--
Gitblit v1.8.0