private void btnTaoHoGiaDinh_Click(object sender, EventArgs e) { frmGiaDinh frm = new frmGiaDinh(); this.Hide(); frm.ShowDialog(); ((frmHOSO)this.ParentForm).Status(clsConfig.TrangThaiHoSo);// goị hàm satus từ form chứa nó. ((frmHOSO)this.ParentForm).KiemTraCheckDone(2); this.Show(); LoadThongTinChu(clsConfig.MaGiaDinh); }
private void btnHoGiaDinh_Click(object sender, EventArgs e) { if (clsConfig.MaHoSo == 0) { MessageBox.Show("Cần tạo hồ sơ trước!"); } else { frmGiaDinh frm = new frmGiaDinh(); this.Hide(); frm.ShowDialog(); // ShowInfo(); Status(clsConfig.TrangThaiHoSo); KiemTraCheckDone(2); this.Show(); } }
private void btnHoGiaDinh_Click(object sender, EventArgs e) { if (clsConfig.MaHoSo == 0) { MessageBox.Show("Cần tạo hồ sơ trước!"); } else { frmGiaDinh frm = new frmGiaDinh(); frm.OnTHTT += new frmGiaDinh.UpdateTongHopThongTinHandler(TongHopThongTin); this.Hide(); frm.ShowDialog(); // ShowInfo(); HienThiThongTinGiaDinh_HoSo(clsConfig.MaHoSo); Status(clsConfig.TrangThaiHoSo); KiemTraCheckDone(2); this.Show(); } }