private void btnThemHoaDon_Click(object sender, EventArgs e) { var form = new BillingAdd(-1); form.ShowDialog(this); if (form.IsChange) { FillBill2Grid(); } }
private void dgvHoaDon_CellClick(object sender, DataGridViewCellEventArgs e) { if (dgvHoaDon.Columns[e.ColumnIndex].Name == "Edit") { var billId = GetSelectedBillId(); var form = new BillingAdd(billId); form.ShowDialog(this); if (form.IsChange) { FillBill2Grid(); } } }