From 2109463fab2eb1caed189e4f258e0e763c5cea7b Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 07 十一月 2019 11:58:53 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-wjc --- ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedListRoomForm.cs | 21 +++++++++------------ 1 files changed, 9 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedListRoomForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedListRoomForm.cs index 515d242..c4a6ace 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedListRoomForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedListRoomForm.cs @@ -77,8 +77,6 @@ this.ShowReLoadView(); return; } - //浠庢湰鍦拌幏鍙栨垚鍛樼殑鍒嗕韩鍒楄〃 - HdlShardLogic.Current.GetMemberShardContentListFromLocal(memberShardInfo); //鍒濆鍖栧尯鍩熷垪琛� this.InitAreaListRow(); @@ -142,6 +140,8 @@ { this.AddRoomListRow(floorId, dicGroup[floorId]); } + //璋冩暣妗屽竷楂樺害 + listView.AdjustTableHeight(); }); } } @@ -226,6 +226,8 @@ } frameRow.frameTable.ButtonClickEvent += (sender, e) => { + var form = new LookSharedContentForm(); + form.AddForm(room, memberShardInfo); }; //鍒犻櫎 @@ -262,19 +264,14 @@ { //鑾峰彇鍏ㄩ儴璁惧 var listDevice = new List<CommonDevice>(); - foreach (var deviceUi in room.DeviceUIList) + foreach (var deviceFile in room.DeviceUIFilePathList) { - var device = deviceUi.CommonDevice; - if (device == null) + var byteData = HdlShardLogic.Current.GetShardFileContent(deviceFile); + if (byteData == null) { - string deviceFile = deviceUi.FileName; - var byteData = HdlShardLogic.Current.GetShardFileContent(deviceFile); - if (byteData == null) - { - continue; - } - device = Newtonsoft.Json.JsonConvert.DeserializeObject<CommonDevice>(System.Text.Encoding.UTF8.GetString(byteData)); + continue; } + var device = Newtonsoft.Json.JsonConvert.DeserializeObject<CommonDevice>(System.Text.Encoding.UTF8.GetString(byteData)); listDevice.Add(device); } //鑾峰彇鍏ㄩ儴鍦烘櫙 -- Gitblit v1.8.0