| | |
| | | this.ShowReLoadView();
|
| | | return;
|
| | | }
|
| | | //从本地获取成员的分享列表
|
| | | HdlShardLogic.Current.GetMemberShardContentListFromLocal(memberShardInfo);
|
| | | //初始化区域列表
|
| | | this.InitAreaListRow();
|
| | |
|
| | |
| | | {
|
| | | this.AddRoomListRow(floorId, dicGroup[floorId]);
|
| | | }
|
| | | //调整桌布高度
|
| | | listView.AdjustTableHeight();
|
| | | });
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | frameRow.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new LookSharedContentForm();
|
| | | form.AddForm(room, memberShardInfo);
|
| | | };
|
| | |
|
| | | //删除
|
| | |
| | | {
|
| | | //获取全部设备
|
| | | 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);
|
| | | }
|
| | | //获取全部场景
|