public FormMain(bool debug) : this() { Debug = debug; if (Debug) { _formDebug = new FormDebug(); } }
private void menuItemDebug_Click(object sender, EventArgs e) { DebugWriteLine("Opening the Debug window..."); if (null == _formDebug || _formDebug.IsDisposed) { _formDebug = new FormDebug(); } _formDebug.Show(); }