private void ttPhongBan_Click(object sender, EventArgs e) { this.Close(); frmSinhVien duc = new frmSinhVien(); duc.Show(); }
private void btnChitietSV_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var form1 = new frmSinhVien(); if (ExistForm(form1)) return; form1.MdiParent = this; form1.Show(); }
private void mnuSinhVien_Click(object sender, EventArgs e) { frmSinhVien frm = new frmSinhVien(); if (frm.ShowDialog() == DialogResult.OK) { } }
private void ThôngTinSinhViênToolStripMenuItem_Click(object sender, EventArgs e) { frmSinhVien frmSinhVien = new frmSinhVien(); frmMain frmMain = new frmMain(); frmSinhVien.Show(); frmMain.Hide(); }
private void sinhvienToolStripMenuItem_Click(object sender, EventArgs e) { if (Quyen == "1" || Quyen == "2") { if (this.formsinhvien is null || this.formsinhvien.IsDisposed) { this.formsinhvien = new frmSinhVien(); formsinhvien.MdiParent = this; this.formsinhvien.Show(); } else { this.formsinhvien.Select(); } }
private void btnCapNhatSV_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frm = this.CheckExists(typeof(frmSinhVien)); if (frm != null) { frm.Activate(); } else { frmSinhVien f = new frmSinhVien(); f.MdiParent = this; f.Show(); } }