From 6f16607efe766271c69a4f3f96fb928fe25f112c Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期五, 01 十一月 2019 16:22:13 +0800 Subject: [PATCH] 2019-11-01-2 --- ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs b/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs index 763516c..e30cc54 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) { @@ -45,7 +45,7 @@ TextColor = ZigbeeColor.Current.LogicTextBlackColor, TextAlignment = TextAlignment.CenterLeft, X = Application.GetRealWidth(176), - Width = Application.GetRealWidth(400), + Width = Application.GetRealWidth(600), Height = Application.GetRealHeight(69), Y = Application.GetRealHeight(92), TextID = MyInternationalizationString.userlist, @@ -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