private void buttonX4_Click(object sender, EventArgs e) { NgheNghiepCtrl NN = new NgheNghiepCtrl(); QLKTX.Dialog.DiaLog_Them_Sua_NgheNghiep qh = new QLKTX.Dialog.DiaLog_Them_Sua_NgheNghiep(); qh.StartPosition = FormStartPosition.Manual; qh.Left = this.Location.X + groupThongTin.Location.X + groupThanNhan.Location.X + btnThemTonGiao.Location.X; qh.Top = this.Location.Y + groupThongTin.Location.Y + groupThanNhan.Location.Y; qh.ShowDialog(); Graphics f = this.CreateGraphics(); NN.LayComboboxNgheNghiep(cmbNgheNghiepThanNhan); cmbNgheNghiepThanNhan.SelectedIndex = qh.Index; }
private void frmSuaSinhVien_Load(object sender, EventArgs e) { QuocTichCtrl QT = new QuocTichCtrl(); TonGiaoCtrl TG = new TonGiaoCtrl(); DanTocCtrl DT = new DanTocCtrl(); QuanHeCtrl QH = new QuanHeCtrl(); NgheNghiepCtrl NN = new NgheNghiepCtrl(); QT.LayComboboxQuocTich(cmbQuocTich); TG.LayComboboxTonGiao(cmbTonGiao); DT.LayComboboxDanToc(cmbDanToc); QH.LayComboboxQuanHe(cmbQuanHeThanNhan); NN.LayComboboxNgheNghiep(cmbNgheNghiepThanNhan); ctrl.LayDSSVLenListView_Sua(listSinhVien); }
private void frmThemSinhVien_Load(object sender, EventArgs e) { QuocTichCtrl QT = new QuocTichCtrl(); TonGiaoCtrl TG = new TonGiaoCtrl(); DanTocCtrl DT = new DanTocCtrl(); QuanHeCtrl QH = new QuanHeCtrl(); NgheNghiepCtrl NN = new NgheNghiepCtrl(); QT.LayComboboxQuocTich(cmbQuocTich); TG.LayComboboxTonGiao(cmbTonGiao); DT.LayComboboxDanToc(cmbDanToc); QH.LayComboboxQuanHe(cmbQuanHeThanNhan); NN.LayComboboxNgheNghiep(cmbNgheNghiepThanNhan); txtMaKTX.Text = SVCtrl.LayMaKTX(); }