private void btnAdd_Click(object sender, EventArgs e) { StockWithdrawalItemDetailUI loStockWithdrawalItemDetail = new StockWithdrawalItemDetailUI(); loStockWithdrawalItemDetail.ParentList = this; loStockWithdrawalItemDetail.ShowDialog(); }
private void btnEdit_Click(object sender, EventArgs e) { StockWithdrawalItemDetailUI loStockWithdrawalItemDetail = new StockWithdrawalItemDetailUI(dgvDetail.CurrentRow.Cells[0].Value.ToString(), dgvDetail.CurrentRow.Cells[1].Value.ToString(), dgvDetail.CurrentRow.Cells[2].Value.ToString(), dgvDetail.CurrentRow.Cells[3].Value.ToString(), dgvDetail.CurrentRow.Cells[4].Value.ToString(), decimal.Parse(dgvDetail.CurrentRow.Cells[6].Value.ToString()), decimal.Parse(dgvDetail.CurrentRow.Cells[7].Value.ToString()), decimal.Parse(dgvDetail.CurrentRow.Cells[8].Value.ToString()), decimal.Parse(dgvDetail.CurrentRow.Cells[9].Value.ToString()), dgvDetail.CurrentRow.Cells[10].Value.ToString()); loStockWithdrawalItemDetail.ParentList = this; loStockWithdrawalItemDetail.ShowDialog(); }