Ejemplo n.º 1
0
        private void btnThemCTKK_Click(object sender, EventArgs e)
        {
            int rowselected = grvDSPKK.GetSelectedRows()[0];

            frmChiTietKiemKe_Them.MaPKK = grvDSPKK.GetRowCellValue(rowselected, "SoPhieuKiemKe").ToString();
            frmChiTietKiemKe_Them f = new frmChiTietKiemKe_Them();

            f.FormClosing += new FormClosingEventHandler(reload);
            f.ShowDialog();
        }
Ejemplo n.º 2
0
        private void reload(object sender, FormClosingEventArgs e)
        {
            string maPhieu;

            maPhieu = grvDSPKK.GetRowCellValue(grvDSPKK.GetSelectedRows()[0], "SoPhieuKiemKe").ToString();
            frmChiTietKiemKe_Them f = (frmChiTietKiemKe_Them)sender;

            if (f.isDataChanged == true)
            {
                grcCTKK.DataSource = ChiTietKiemKeService.GetById(maPhieu);
            }
        }