public GuestBookListControl(GuestBookListModel model) { InitializeComponent(); _presenter = new GuestBookListPresenter(this, model); gvGuestBook.PopupMenuShowing += gvGuestBook_PopupMenuShowing; gvGuestBook.FocusedRowChanged += gvGuestBook_FocusedRowChanged; // init editor control accessibility btnNewGuestBook.Enabled = AllowInsert; cmsEditData.Enabled = AllowEdit; cmsDeleteData.Enabled = AllowDelete; this.CreatedDateFilter = System.DateTime.Now; this.Load += GuestBookListControl_Load; }
public GuestBookListControl(GuestBookListModel model) { InitializeComponent(); _presenter = new GuestBookListPresenter(this, model); gvGuestBook.PopupMenuShowing += gvGuestBook_PopupMenuShowing; gvGuestBook.FocusedRowChanged += gvGuestBook_FocusedRowChanged; // init editor control accessibility btnNewGuestBook.Enabled = AllowInsert; cmsEditData.Enabled = AllowEdit; cmsDeleteData.Enabled = AllowDelete; this.CreatedDateFilter = System.DateTime.Now; this.Load +=GuestBookListControl_Load; }