コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }