/// Открывает форму, если она закрыта или закрывает, если открыта public void ChangeFormState() { if (_form == null) { _form = new DebugForm(this); _form.Show(); _form.ShowCommands(_commands); } else { _form.Close(); } }
/// <summary> /// Custom cleanup code for anything not part of baseclient class. /// </summary> protected override void Cleanup() { base.Cleanup(); if (DebugForm != null) { DebugForm.Close(); DebugForm = null; } if (MainForm != null) { MainForm.Close(); MainForm = null; } }