コード例 #1
0
        private void btnLapPhieuNhap_Click(object sender, EventArgs e)
        {
            frmPhieuNhapThemSua f = new frmPhieuNhapThemSua();

            f.FormClosing += new FormClosingEventHandler(Reload);
            f.ShowDialog();
        }
コード例 #2
0
        private void Reload(object sender, FormClosingEventArgs e)
        {
            frmPhieuNhapThemSua f = (frmPhieuNhapThemSua)sender;

            if (f.isDataChanged == true)
            {
                grcPhieuNhap.DataSource = PhieuNhapService.LoadDataTable();
            }
        }