public void ShowConfiguration(object sender, EventArgs e) { Debug.Assert(mainThreadID == Thread.CurrentThread.GetHashCode()); if (configuration.Visible) { if (configuration.WindowState == FormWindowState.Minimized) { configuration.WindowState = FormWindowState.Normal; } return; } if (configuration.IsDisposed) { configuration = new Configuration(); } configuration.LoadConfiguration(); Activate(configuration); }