public InvoiceListControl(InvoiceListModel model) { InitializeComponent(); _presenter = new InvoiceListPresenter(this, model); gvInvoice.PopupMenuShowing += gvInvoice_PopupMenuShowing; gvInvoice.FocusedRowChanged += gvInvoice_FocusedRowChanged; // init editor control accessibility cmsAddData.Enabled = AllowInsert; cmsEditData.Enabled = AllowEdit; cmsPrint.Enabled = AllowEdit; cmsAddReturn.Enabled = AllowEdit; if (LoginInformation.RoleName == DbConstant.ROLE_SUPERADMIN) { btnRepairAll.Visible = true; } else { btnRepairAll.Visible = false; } this.Load += InvoiceListControl_Load; }
public InvoiceListControl(InvoiceListModel model) { InitializeComponent(); _presenter = new InvoiceListPresenter(this, model); gvInvoice.PopupMenuShowing += gvInvoice_PopupMenuShowing; gvInvoice.FocusedRowChanged += gvInvoice_FocusedRowChanged; // init editor control accessibility cmsAddData.Enabled = AllowInsert; cmsEditData.Enabled = AllowEdit; cmsPrint.Enabled = AllowEdit; this.Load += InvoiceListControl_Load; }