internal static void ShowHideDiagnosticsWindow() { if (_Form == null) { _Form = new FrmDiagnostics(); _Form.Show(); } else { _Form.Close(); _Form.Dispose(); _Form = null; } }