public PoItemsDialog(PurchaseOrderItems item,frmPurchaseOrder PoUI) { this.PoItems = item; this.POUI = PoUI; InitializeComponent(); SetValues(); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PoItemsDialog_FormClosing); }
private void btnEdit_Click(object sender, EventArgs e) { EditPOItems(); frmPurchaseOrder PO_ = new frmPurchaseOrder(txtPoNo.Text); PO_.RefreshGrid(); }
private void btnAdd_Click(object sender, EventArgs e) { if (isValidPoItem() == true) { AddPOItems(); frmPurchaseOrder PO_ = new frmPurchaseOrder(txtPoNo.Text); PO_.RefreshGrid(); this.Close(); } }