private void btnNew_Click(object sender, EventArgs e) { frmPurchase frm = new frmPurchase(); frm.ShowDialog(); this.loadStock(); }
private void btnNew_Click(object sender, EventArgs e) { frmPurchase frmPur = new frmPurchase(); frmPur.ShowDialog(); this.LoadData(); }
private void dgvList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int purchaseId = Convert.ToInt32(dgvList.CurrentRow.Cells[1].Value); frmPurchase frmPur = new frmPurchase(); frmPur.purchaseId = purchaseId; frmPur.viewFlag = true; frmPur.ShowDialog(); }
private void btnView_Click(object sender, EventArgs e) { int rowIndex = dgvList.CurrentRow.Index; if (rowIndex >= 0) { int purchaseId = Convert.ToInt32(dgvList.CurrentRow.Cells[1].Value); frmPurchase frmPur = new frmPurchase(); frmPur.purchaseId = purchaseId; frmPur.viewFlag = true; frmPur.ShowDialog(); } }