private void btnLapPhieuXuat_Click(object sender, EventArgs e) { frmPhieuXuatThemSua f = new frmPhieuXuatThemSua(); f.FormClosing += new FormClosingEventHandler(Reload); f.ShowDialog(); }
private void Reload(object sender, FormClosingEventArgs e) { frmPhieuXuatThemSua f = (frmPhieuXuatThemSua)sender; if (f.isDataChanged == true) { grcPhieuXuat.DataSource = PhieuXuatService.LoadDataTable(); } }