private void configToolStripMenuItem_Click(object sender, EventArgs e) { if (config != null) { if (!config.Visible) { config.Show(); } } else { config = new FormConfig(); config.MdiParent = this; config.Show(); } }