| | |
| | | /// <summary>
|
| | | /// 删除指定设备
|
| | | /// </summary>
|
| | | private async void DoDeleteDevice()
|
| | | private void DoDeleteDevice()
|
| | | {
|
| | | //删除设备
|
| | | bool result = await Common.LocalDevice.Current.DeleteDevice(listNewDevice);
|
| | | if (result == false)
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | return;
|
| | | }
|
| | | //关闭界面
|
| | | this.CloseForm();
|
| | | //打开进度条
|
| | | this.ShowProgressBar();
|
| | |
|
| | | //删除设备
|
| | | bool result = await Common.LocalDevice.Current.DeleteDevice(listNewDevice);
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | | if (result == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //关闭界面
|
| | | this.CloseForm();
|
| | | });
|
| | | });
|
| | | }
|
| | | #endregion
|
| | |
|