| | |
| | | using HDL_ON.Stan; |
| | | using Shared; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | AddDeviceEvent?.Invoke(new Function()); |
| | | this.CloseForm(); |
| | | }); |
| | | }else if(pack.Code == "10801" || pack.Code == "9") |
| | | { |
| | | var mes = ""; |
| | | if (Language.CurrentLanguage == "Chinese") |
| | | { |
| | | mes = "该设备已经被添加。"; |
| | | } |
| | | else |
| | | { |
| | | mes = "This device has been added."; |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | | Text = mes, |
| | | CloseTime = 2, |
| | | Direction = AMPopTipDirection.None |
| | | }; |
| | | tip.Show(MainPage.BaseView); |
| | | }); |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => { waitPage.Hide(); }); |
| | | Application.RunOnMainThread(() => { |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |