public PurchasingListControl(PurchasingListModel model) { InitializeComponent(); _presenter = new PurchasingListPresenter(this, model); gvPurchasing.PopupMenuShowing += gvPurchasing_PopupMenuShowing; gvPurchasing.FocusedRowChanged += gvPurchasing_FocusedRowChanged; // init editor control accessibility btnNewPurchasing.Enabled = AllowInsert; cmsEditData.Enabled = AllowEdit; persetujuanPembelianToolStripMenuItem.Enabled = AllowEdit; cmsPrint.Enabled = AllowEdit; txtDateFilterFrom.EditValue = txtDateFilterTo.EditValue = DateTime.Today; this.Load += PurchasingListControl_Load; }
public PurchasingListControl(PurchasingListModel model) { InitializeComponent(); _presenter = new PurchasingListPresenter(this, model); gvPurchasing.PopupMenuShowing += gvPurchasing_PopupMenuShowing; gvPurchasing.FocusedRowChanged += gvPurchasing_FocusedRowChanged; // init editor control accessibility btnNewPurchasing.Enabled = AllowInsert; cmsEditData.Enabled = AllowEdit; persetujuanPembelianToolStripMenuItem.Enabled = AllowEdit; cmsPrint.Enabled = AllowEdit; cmsAddReturn.Enabled = AllowEdit; txtDateFilterFrom.EditValue = txtDateFilterTo.EditValue = DateTime.Today; this.Load += PurchasingListControl_Load; }