| | |
| | | { |
| | | Tag = "Logic"; |
| | | } |
| | | /// <summary> |
| | | /// 表示返回更新界面 |
| | | /// (定义静态是因为该界面会被其它界面移除,返回时会出现action空异常) |
| | | /// </summary> |
| | | public static Action action; |
| | | |
| | | public void Show() |
| | | { |
| | | this.BackgroundColor = CSS.CSS_Color.viewMiddle; |
| | |
| | | viewLayout.AddChidren(cyclicTextView.FLayoutView(54, 20)); |
| | | ///选择周期类型View |
| | | LogicView.LogicTypeTitleView cyclicTitle = new LogicView.LogicTypeTitleView(); |
| | | cyclicTextView.frameLayout.Height = Application.GetRealHeight(50); |
| | | cyclicTitle.frameLayout.SetCornerWithSameRadius(Application.GetRealHeight(12), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight | HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); |
| | | //cyclicTitle.frameLayout.Radius = (uint)Application.GetRealHeight(12); |
| | | cyclicTitle.frameLayout.Height = Application.GetRealHeight(50); |
| | | cyclicTitle.frameLayout.Radius = (uint)Application.GetRealHeight(12); |
| | | cyclicTitle.btnText.TextID = StringId.days; |
| | | viewLayout.AddChidren(cyclicTitle.FLayoutView()); |
| | | cyclicTitle.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | FrameLayout fLayout = new FrameLayout |
| | | { |
| | | BackgroundColor = CSS.CSS_Color.viewTrans60lucence, |
| | | }; |
| | | this.AddChidren(fLayout); |
| | | LogicView.DateView dateView = new LogicView.DateView(); |
| | | dateView.FLayoutView(fLayout, 7); |
| | | dateView.btnCancel.MouseUpEventHandler += (sender2, e2) => |
| | | { |
| | | //移除fLayout界面 |
| | | fLayout.RemoveFromParent(); |
| | | }; |
| | | for (int i = 0; i < 7; i++) { |
| | | LogicView.SelectTypeView dateTypeView = new LogicView.SelectTypeView(); |
| | | dateTypeView.frameLayout.Y = Application.GetRealHeight(56 + 50 * i); |
| | | dateTypeView.btnIcon.Visible = false; |
| | | dateTypeView.btnText.X = Application.GetRealWidth(20); |
| | | dateTypeView.btnText.TextID = StringId.time; |
| | | dateTypeView.btnNextIcon.X = Application.GetRealWidth(307); |
| | | dateView.AddChidren(dateTypeView.FLayoutView()); |
| | | } |
| | | }; |
| | | #endregion |
| | | |
| | | #region 执行推送 发送通知 |
| | |
| | | saveView.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | Logic.LogicList.Add(Logic.currlogic); |
| | | action(); |
| | | if (action != null) |
| | | { |
| | | action = null; |
| | | } |
| | | LogicMethod.RemoveAllView(); |
| | | MainView.MainShow(); |
| | | |
| | | }; |
| | | //saveView.frameLayout.Y = this.Height - saveView.frameLayout.Height; |