private void btnLapPhieuNhap_Click(object sender, EventArgs e) { frmPhieuNhapThemSua f = new frmPhieuNhapThemSua(); f.FormClosing += new FormClosingEventHandler(Reload); f.ShowDialog(); }
private void Reload(object sender, FormClosingEventArgs e) { frmPhieuNhapThemSua f = (frmPhieuNhapThemSua)sender; if (f.isDataChanged == true) { grcPhieuNhap.DataSource = PhieuNhapService.LoadDataTable(); } }