| | |
| | | {
|
| | | continue;
|
| | | }
|
| | | var sceneUi = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.SceneUI>(System.Text.Encoding.UTF8.GetString(byteData));
|
| | | listScene.Add(sceneUi);
|
| | | try
|
| | | {
|
| | | var sceneUi = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.SceneUI>(System.Text.Encoding.UTF8.GetString(byteData));
|
| | | listScene.Add(sceneUi);
|
| | | }
|
| | | catch { }
|
| | | }
|
| | | if (listScene.Count == 0)
|
| | | {
|
| | |
| | | //确认删除选择的共享场景和功能?
|
| | | this.ShowMassage(ShowMsgType.Confirm, Language.StringByID(R.MyInternationalizationString.uDeleteShardContentMsg), () =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //上传文件
|
| | | var result = await HdlShardLogic.Current.DoDeleteSharedContent(memberShardInfo, this.lookRoom, listDevice, listScene);
|
| | | var result = HdlShardLogic.Current.DoDeleteSharedContent(memberShardInfo, this.lookRoom, listDevice, listScene);
|
| | | if (result == true)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | |
| | | }
|
| | | //从分享文件中序列化回来
|
| | | var deviceData = HdlShardLogic.Current.GetShardFileContent(deviceFile);
|
| | | var device = ZigBee.Device.CommonDevice.CommonDeviceByByteString(strArry[1], System.Text.Encoding.UTF8.GetString(deviceData));
|
| | | if (device != null)
|
| | | try
|
| | | {
|
| | | listDevice.Add(device);
|
| | | var device = ZigBee.Device.CommonDevice.CommonDeviceByByteString(strArry[1], System.Text.Encoding.UTF8.GetString(deviceData));
|
| | | if (device != null)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | }
|
| | | catch { }
|
| | | }
|
| | | }
|
| | | return listDevice;
|