private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { TeacherAccount teacherAccount = new TeacherAccount(); teacherAccount.MdiParent = this; teacherAccount.Show(); }
private void toolStripAccount_Click(object sender, EventArgs e) { if (CheckOpened("TeacherAccount")) { Application.OpenForms["TeacherAccount"].BringToFront(); } else { TeacherAccount frm = new TeacherAccount(); frm.Show(); } }