| | |
| | | using System; |
| | | using Shared; |
| | | using HDL_ON.UI.CSS; |
| | | using Xamarin.Essentials; |
| | | //using Xamarin.Essentials; |
| | | using HDL_ON.DAL.Server; |
| | | |
| | | namespace HDL_ON.UI |
| | |
| | | |
| | | public void InitView_PreRelease() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.CancelAccount)).LoadTopView(CSS_Color.MainBackgroundColor); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.CancelAccount)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(CSS_Color.MainBackgroundColor); |
| | | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | var textView = new Button() |
| | |
| | | btnLogin.MouseUpEventHandler = (sender,e) =>{ |
| | | if (btnLogin.IsSelected) |
| | | { |
| | | var tipMsg = "*您当前正在注销账户,注销完成后,您的所有数据均会被删除,请谨慎操作。"; |
| | | if(Language.CurrentLanguage!= "Chinese") |
| | | { |
| | | tipMsg = "*You are currently canceling your account. After completing the cancellation, all your data will be deleted.Please operate with caution."; |
| | | } |
| | | var tipMsg = "*您当前正在注销账户,注销完成后,您在App的所有数据均会被删除,请谨慎操作。"; |
| | | Action action = () => { |
| | | var loading = new Loading(); |
| | | this.AddChidren(loading); |
| | |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | | MaxWidth = Application.GetRealWidth(300), |
| | | Text = pack.message, |
| | | CloseTime = 3, |
| | | Direction = AMPopTipDirection.None |
| | |
| | | phoneRow.AddChidren(btnImage); |
| | | phoneRow.AddChidren(new Button() { X = Application.GetRealWidth(16), Y = Application.GetRealWidth(49), Height = Application.GetRealHeight(1), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | }; |
| | | //EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | //{ |
| | | // PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | //}; |
| | | |
| | | phoneRow.MouseUpEventHandler = eventHandler; |
| | | btnPhoneText.MouseUpEventHandler = eventHandler; |
| | | btnImage.MouseUpEventHandler = eventHandler; |
| | | //phoneRow.MouseUpEventHandler = eventHandler; |
| | | //btnPhoneText.MouseUpEventHandler = eventHandler; |
| | | //btnImage.MouseUpEventHandler = eventHandler; |
| | | #endregion |
| | | |
| | | #region 联系邮箱 |
| | |
| | | /// <param name="text"></param> |
| | | void CopyToClipboard(string text) |
| | | { |
| | | Clipboard.SetTextAsync(text); |
| | | Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | //Clipboard.SetTextAsync(text); |
| | | //Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | } |
| | | |
| | | |