| | |
| | | MenuButtonSelect(0); |
| | | }; |
| | | allMenuButton.SelectAction = allAction; |
| | | |
| | | #if DEBUG |
| | | //测试提前当前推送ID |
| | | allMenuButton.ImageButton.MouseLongEventHandler = (sender, e) => |
| | | { |
| | | CopyToClipboard("推送ID:" + OnAppConfig.Instance.PushId); |
| | | }; |
| | | #endif |
| | | #endregion |
| | | #if DEBUG |
| | | |
| | | #region 分享与功能 |
| | | CopyToClipboard("推送ID:" + OnAppConfig.Instance.PushId); |
| | | #else |
| | | //检测是否获取推送ID成功,提示推送注册是否正常 |
| | | if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.PushException)); |
| | | } |
| | | else |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.PushNormal)); |
| | | } |
| | | #endif |
| | | |
| | | }; |
| | | #endregion |
| | | |
| | | #region 分享与功能 |
| | | shareMenuButton = new MenuButton() |
| | | { |
| | | X = allMenuButton.Right, |
| | |
| | | MenuButtonSelect(1); |
| | | }; |
| | | shareMenuButton.SelectAction = shateAction; |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 报警类 |
| | | #region 报警类 |
| | | alarmMenuButton = new MenuButton() |
| | | { |
| | | X = shareMenuButton.Right, |
| | |
| | | MenuButtonSelect(2); |
| | | }; |
| | | alarmMenuButton.SelectAction = alarmAction; |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 系统信息 |
| | | #region 系统信息 |
| | | systemMenuButton = new MenuButton() |
| | | { |
| | | X = alarmMenuButton.Right, |
| | |
| | | MenuButtonSelect(3); |
| | | }; |
| | | systemMenuButton.SelectAction = systemAction; |
| | | #endregion |
| | | #endregion |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | #region 测试 |
| | | #region 测试 |
| | | #if DEBUG |
| | | /// <summary> |
| | | /// |
| | |
| | | |
| | | #endif |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 标记所有推送消息已读 |