public ToDoListProductView(AbsViewController _ctrl) : base(_ctrl, "box") { var scrollLayout = new ScrollLayout().AddTo(this); productViews = new VerticalLayout("box").AddTo(scrollLayout); detailViews = new VerticalLayout("box").AddTo(scrollLayout); // Rebuild(); }
public ToDoListCategoryListView(AbsViewController ctrl) : base(ctrl, "box") { new ButtonView("+", () => OpenSubWindow(), true) .BackgroundColor(Color.yellow).AddTo(this); new SpaceView(4f).AddTo(this); verticalLayout = new VerticalLayout("box").AddTo(this); }
public ToDoListNoteView(AbsViewController ctrl) : base(ctrl, "box") { titleLabelView = new LabelView("欢迎来到笔记界面") .TextMiddleCenter() .FontBold() .FontSize(40).AddTo(this); createButtonView = new ButtonView("创建笔记", () => CreateNewEditor(), true).FontSize(25).Height(30).AddTo(this); //closeButtonView = new ButtonView("关闭", () => CreateNewEditor(), true).AddTo(this); editorView = new ToDoListNoteEditorView(SaveAction, CloseAction).AddTo(this); noteListScrollLayout = new ScrollLayout().AddTo(this); editorView.Hide(); }
public ToDoListView(AbsViewController ctrl) : base(ctrl) { todoListToDoView = new ToDoListToDoView(eventKey); todoListHideView = new ToDoListHideView(eventKey); todoListFinishedView = new ToDoListFinishedView(eventKey); todoListToolBarView = new ToolBarView { style = "box" }.FontSize(15).Height(40).AddTo(this); AddMenu(todoListToolBarView, ("进行", todoListToDoView), ("隐藏", todoListHideView), ("完成", todoListFinishedView)); }
public ToDoListPage(AbsViewController _ctrl, GUIStyle style = null) : base(style) { eventKey = GetHashCode(); ctrl = _ctrl; RegisterEvent(ctrl.eventKey, ChangePage); }