private void miQLNgheNghiep_Click(object sender, EventArgs e) { if (this.frm_NgheNghiep == null || this.frm_NgheNghiep.IsDisposed) { frm_NgheNghiep = new frmNgheNghiep(); frm_NgheNghiep.MdiParent = this; frm_NgheNghiep.Show(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btThemNgheMe_Click(object sender, EventArgs e) { int chaSelectednIndex = this.cmbNNghiepCha.SelectedIndex; frmNgheNghiep frm_NgheNghiep = new frmNgheNghiep(this.NgheNghiepMeController); frm_NgheNghiep.ControlBox = false;//Khong cho hien thi nut "X" tren thanh tieu de frm_NgheNghiep.WindowState = FormWindowState.Normal; if (frm_NgheNghiep.ShowDialog() == DialogResult.OK) { this.NgheNghiepChaContorller.Data.LayDS(); this.cmbNNghiepCha.SelectedIndex = chaSelectednIndex; } }