/// <summary> /// Open the Logging Console when the Console icon is clicked. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Toolbar_Console_Click(object sender, RoutedEventArgs e) { if (_loggingConsole == null) { _loggingConsole = new LoggingConsole(); _loggingConsole.Closed += Console_Closed; _loggingConsole.Owner = MainWindow._topWindow; _loggingConsole.Show(); } }
/// <summary> /// Set our reference to the Logging Console to null if it is closed. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Console_Closed(object sender, EventArgs e) { _loggingConsole = null; }