private void manageUsersToolStripMenuItem_Click(object sender, EventArgs e) { var form = new ManageUsersForm(); form.MdiParent = this; form.Show(); }
private void manageUsersToolStripMenuItem_Click(object sender, EventArgs e) { var openForms = Application.OpenForms.Cast <Form>(); bool isOpen = openForms.Any(x => x.Name == "ManageUsersForm"); if (!isOpen) { ManageUsersForm muf = new ManageUsersForm(); muf.MdiParent = this; muf.WindowState = FormWindowState.Maximized; muf.Show(); } }