| | |
| | | using System; |
| | | using Shared; |
| | | using HDL_ON.UI.CSS; |
| | | using Xamarin.Essentials; |
| | | //using Xamarin.Essentials; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | /// </summary> |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Complaints)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Complaints)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | |
| | | #region 投诉联系 |
| | | FrameLayout phoneRow = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealWidth(50), |
| | | }; |
| | | bodyView.AddChidren(phoneRow); |
| | |
| | | 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)); |
| | | } |
| | | |
| | | } |