private void btnNewPO_Click(object sender, EventArgs e) { if (!User.UserInAction("New Purchase Order")) { return; } frmAddEditPurchaseOrder frm = new frmAddEditPurchaseOrder() { frmPurchaseOrders = this, MethodType = MethodType.Add, }; frm.ShowDialog(); UcPOGrid.CreateUcControl(); }
private void frmPurchaseOrders_Load(object sender, EventArgs e) { UcPOGrid.CreateUcControl(); UcPOGrid.POGrid.FocusedRowChanged += POGrid_FocusedRowChanged; }