private void tsmenuItemSystemEdit_Click(object sender, EventArgs e) { (sender as ToolStripMenuItem).Enabled = false; fSystemEditForm fsystemEdit = new fSystemEditForm(); fsystemEdit.MdiParent = this; fsystemEdit.Done += FsystemEdit_Done; fsystemEdit.FormClosing += FsystemEdit_FormClosing; fsystemEdit.Show(); fsystemEdit.Location = new Point(555, 20); }
private void tsmenuItemSystemEdit_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["fSystemEditForm"]; if (fc == null) { fSystemEditForm fsystemEdit = new fSystemEditForm(); fsystemEdit.MdiParent = this; fsystemEdit.Done += FsystemEdit_Done; fsystemEdit.FormClosing += FsystemEdit_FormClosing; fsystemEdit.Show(); fsystemEdit.Location = new Point(555, 20); } else { fc.BringToFront(); } }