public EditStudentBoardSecondPresenter(IEditStudentBoardSecond studentBoard, IGroupView groupView) : base(studentBoard, groupView) { _studentBoardSecond = studentBoard; SetHandlers(); }
public AddStudentBoardPresenter(IAddStudentBoard studentBoard, IGroupView groupView) : base(studentBoard, groupView) { _addStudentBoard = studentBoard; _groupView = groupView; SetHandlers(); }
public EditGroupBoardFirstPresenter(IEditGroupBoardFirst editGroupBoardFirst, IGroupView groupView) { _editGroupBoardFirst = editGroupBoardFirst; _groupView = groupView; SetHandlers(); }
protected StudentBoardPresenter(IStudentBoard studentBoard, IGroupView groupView) { _studentBoard = studentBoard; _groupView = groupView; SetHandlers(); }
public GroupPresenter(IGroupView view, IDataBaseExecutable DataBaseManager, IMessager messager, IGroupManager groupManager) { this.messager = messager; this.groupManager = groupManager; this.view = view; view.AddNewGroup += new EventHandler(view_AddNewGroup); view.ChangeGroup += new EventHandler(view_ChangeGroup); view.RemoveGroup += new EventHandler(view_RemoveGroup); view.RefreshGroupList += new EventHandler(view_RefreshGroupList); }
void GroupListControl_ControlAdded(object sender, ControlEventArgs e) { System.Diagnostics.Debug.WriteLine(String.Format("GroupListControl_ControlAdded.")); IGroupView glv = (IGroupView)e.Control; if (glv == null) { return; } glv.Width = this.Width; glv.GroupCollapsed += new GroupExpansionHandler(glv_GroupCollapsed); glv.GroupExpanded += new GroupExpansionHandler(glv_GroupExpanded); }
void glv_GroupExpanded(object sender, EventArgs e) { System.Diagnostics.Debug.WriteLine(String.Format("glv_GroupExpanded called.")); // Grab a reference to the DragScrollListView3 which sent the message: IGroupView expanded = (IGroupView)sender; if (expanded == null) { return; } // If Single item only expansion, collapse all ListGroups in except // the one currently exanding: if (this.SingleItemOnlyExpansion) { this.SuspendLayout(); foreach (IGroupView glv in this.Controls) { if (!glv.Equals(expanded)) { glv.Collapse(); } } this.ResumeLayout(true); } BuildDisplayRows(); if (AreAllGroupsExpanded()) { if (this.AllGroupsExpanded != null) { this.AllGroupsExpanded(this, new EventArgs()); } } }
public GroupPresenter(IGroupView view, Grupo grupo, IUnityContainer container) { if (view == null) { throw new ArgumentNullException("view"); } if (grupo == null) { throw new ArgumentNullException("grupo"); } if (container == null) { throw new ArgumentNullException("container"); } this.SubmitCommand = new DelegateCommand <object>(this.Submit, this.CanSubmit); this.CancelCommand = new DelegateCommand <object>(this.Cancel); this._view = view; this._view.SetPresenter(this); this._container = container; this.Grupo = grupo; }
public GroupPresenter(IGroupView view) { groupView = view; }
public GroupPresenter(IGroupView view) { this.view = view; }