From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期五, 12 六月 2020 09:22:04 +0800 Subject: [PATCH] 2020.06.12 --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs index 774d509..5080f98 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs @@ -189,6 +189,8 @@ //鏀瑰悕瀛� btnNote.txtInput.FinishInputEvent(); + this.CloseForm(); + var form = new DeviceMacInfoEditorForm(); form.AddForm(this.listNewDevice[0].DeviceAddr); }; @@ -260,11 +262,11 @@ /// </summary> /// <param name="i_deviceName">deviceName.</param> /// <param name="mode">鏄惁鏄剧ず閿欒</param> - private async void DeviceReName(string i_deviceName, ShowErrorMode mode = ShowErrorMode.YES) + private void DeviceReName(string i_deviceName, ShowErrorMode mode = ShowErrorMode.YES) { //淇敼MAC鍚� string deviceName = i_deviceName.Trim(); - var result = await Common.LocalDevice.Current.ReMacName(this.listNewDevice, deviceName, mode); + var result = Common.LocalDevice.Current.ReMacName(this.listNewDevice, deviceName, mode); if (result == false) { return; @@ -276,7 +278,7 @@ /// <summary> /// 璁剧疆鍏ㄩ儴鍥炶矾鐨勯粯璁ゅ悕瀛� /// </summary> - private async void SetAllEpointName() + private void SetAllEpointName() { foreach (var device in this.listNewDevice) { @@ -287,7 +289,7 @@ } //鑾峰彇绔偣鍚嶅瓧 var epointName = Common.LocalDevice.Current.GetDeviceEpointName(device); - await Common.LocalDevice.Current.ReName(device, epointName, ShowErrorMode.NO); + Common.LocalDevice.Current.ReName(device, epointName, ShowErrorMode.NO); } } -- Gitblit v1.8.0