private void barbtnMH_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { QuanLyMonHoc mh = new QuanLyMonHoc(); if (Application.OpenForms[mh.Name] == null) { mh.MdiParent = this; mh.Show(); } else { Application.OpenForms[mh.Name].Focus(); } }
private void FrMain_Load(object sender, EventArgs e) { chart = new DanhGiaNangLuc(); ////THHT = new TinhHinhHocTap(); QLMH = new QuanLyMonHoc(); DiemSV = new DiemSinhVien(); QLK = new QuanLyKhoa(); QLLH = new QuanLyLopHoc(); TTSV = new ThongTinSinhVien(); DMK = new DoiMatKhau(account); TTTK = new ThongTinTaiKhoan(account, DMK); inf = new information(); QLND = new QuanLyNguoiDung(); SLSVTK = new SoLuongSinhVienTheoKhoa(); this.pnlDisplay.Controls.Add(SLSVTK); this.pnlDisplay.Controls.Add(QLND); this.pnlDisplay.Controls.Add(QLMH); this.pnlDisplay.Controls.Add(DiemSV); this.pnlDisplay.Controls.Add(QLK); this.pnlDisplay.Controls.Add(QLLH); this.pnlDisplay.Controls.Add(TTSV); this.pnlDisplay.Controls.Add(TTTK); this.pnlDisplay.Controls.Add(inf); this.pnlDisplay.Controls.Add(DMK); this.pnlDisplay.Controls.Add(chart); this.SLSVTK.Visible = false; this.chart.Visible = false; this.QLND.Visible = false; this.DiemSV.Visible = false; this.QLMH.Visible = false; this.QLK.Visible = false; this.QLLH.Visible = false; this.TTSV.Visible = false; this.DMK.Visible = false; this.TTTK.Visible = false; this.inf.Visible = false; }
private void BtnQuanLyMon_Click(object sender, EventArgs e) { Form frm = new QuanLyMonHoc(); frm.Show(); }
/// <summary> /// Load form quan ly mon hoc /// </summary> void LoadQuanLyMonHoc() { QuanLyMonHoc bd = new QuanLyMonHoc() /*Dock = DockStyle.Fill,*/ TopLevel {