| | |
| | | using System.Collections.Generic; |
| | | using System.Threading; |
| | | using HDL_ON.DAL.Server; |
| | | #if DEBUG |
| | | using Xamarin.Essentials; |
| | | #endif |
| | | //#if DEBUG |
| | | //using Xamarin.Essentials; |
| | | //#endif |
| | | namespace HDL_ON.UI |
| | | { |
| | | /// <summary> |
| | |
| | | public void LoadPage(Action backAction) |
| | | { |
| | | this.backAction = backAction; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.MessageCenter)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.MessageCenter)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | |
| | | AddTopMenuView(); |
| | | AddMessageView(); |
| | |
| | | |
| | | menuView = new HorizontalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealWidth(117), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | HorizontalScrollBarEnabled = false//隐藏滚动条 |
| | |
| | | //测试提前当前推送ID |
| | | allMenuButton.ImageButton.MouseLongEventHandler = (sender, e) => |
| | | { |
| | | #if DEBUG |
| | | //#if DEBUG |
| | | |
| | | CopyToClipboard("推送ID:" + OnAppConfig.Instance.PushId); |
| | | #else |
| | | // CopyToClipboard("推送ID:" + OnAppConfig.Instance.PushId); |
| | | //#else |
| | | //检测是否获取推送ID成功,提示推送注册是否正常 |
| | | if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) |
| | | { |
| | |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.PushNormal)); |
| | | } |
| | | #endif |
| | | //#endif |
| | | |
| | | }; |
| | | #endregion |
| | |
| | | HDLCommon.GetPushMessageAction = null; |
| | | } |
| | | |
| | | #if DEBUG |
| | | //#if DEBUG |
| | | |
| | | /// <summary> |
| | | /// 复制到剪切板 |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | void CopyToClipboard(string text) |
| | | { |
| | | Clipboard.SetTextAsync(text); |
| | | Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | } |
| | | #endif |
| | | // /// <summary> |
| | | // /// 复制到剪切板 |
| | | // /// </summary> |
| | | // /// <param name="text"></param> |
| | | // void CopyToClipboard(string text) |
| | | // { |
| | | // Clipboard.SetTextAsync(text); |
| | | // Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | // } |
| | | //#endif |
| | | |
| | | } |
| | | |