Esempio n. 1
0
 private void ManageMDIParent_Load(object sender, EventArgs e)
 {
     GSSManage.FormUsersOnline form = new GSSManage.FormUsersOnline();
     form.MdiParent   = this;
     form.WindowState = FormWindowState.Maximized;
     form.Show();
 }
Esempio n. 2
0
        private void 在线用户ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool newshow = true;

            foreach (Form childForm in MdiChildren)
            {
                if (childForm.Name == "FormUsersOnline")
                {
                    newshow = false;
                    childForm.Show();
                    childForm.Activate();
                }
            }
            if (newshow)
            {
                GSSManage.FormUsersOnline form = new GSSManage.FormUsersOnline();
                form.MdiParent   = this;
                form.WindowState = FormWindowState.Maximized;
                form.Show();
            }
        }