From ae7c46bda98a987d170a9b8419fc014564790359 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 06 五月 2020 14:20:12 +0800 Subject: [PATCH] 上传 --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs index cf2a242..cfdf0b0 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs @@ -55,6 +55,8 @@ this.SetAllEpointName(); // 璁剧疆缃戝叧鎵�鍦ㄧ殑鏃跺尯鐨勬椂闂寸粰闂ㄩ攣鏃堕棿 this.SetDoorTime(); + //鏂板叆缃戠殑璁惧,娓呯┖鎺夊畠鐨勬埧闂� + this.ClearDeviceFromRoom(); } /// <summary> @@ -306,6 +308,23 @@ #endregion + #region 鈻� 涓�鑸柟娉昣__________________________ + + /// <summary> + /// 鏂板叆缃戠殑璁惧,娓呯┖鎺夊畠鐨勬埧闂� + /// </summary> + private void ClearDeviceFromRoom() + { + foreach (var device in this.listNewDevice) + { + HdlRoomLogic.Current.DeleteDevice(device); + HdlRoomLogic.Current.DeleteLoveDevice(device); + } + Common.LocalDevice.Current.DeleteRealDeviceFromRoom(this.listNewDevice[0]); + } + + #endregion + #region 鈻� 鐢婚潰鍏抽棴___________________________ /// <summary> -- Gitblit v1.8.0