コード例 #1
0
        private void manageUsersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new ManageUsersForm();

            form.MdiParent = this;
            form.Show();
        }
コード例 #2
0
        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();
            }
        }