private void tsmenuItemSystemCheck_Click(object sender, EventArgs e) { (sender as ToolStripMenuItem).Enabled = false; fSystemCheckingForm fsystemChecking = new fSystemCheckingForm(); fsystemChecking.MdiParent = this; fsystemChecking.Show(); }
private void tsmenuItemSystemCheck_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["fSystemCheckingForm"]; if (fc == null) { fSystemCheckingForm fsystemChecking = new fSystemCheckingForm(); fsystemChecking.MdiParent = this; fsystemChecking.Show(); } else { fc.BringToFront(); } }