private void btnXoaHang_Click(object sender, EventArgs e) { frmXoaHang frmXH = new frmXoaHang(); frmXH.ShowDialog(); loadDuLieu(); }
private void btnXoaHang2_Click(object sender, EventArgs e) { Hang h = new Hang(); h.MaHang = dgvHang.SelectedRows[0].Cells[0].Value.ToString(); frmXoaHang formXoaHang = new frmXoaHang(h); formXoaHang.ShowDialog(); loadDuLieu(); }