private void Log_Closed(object sender, EventArgs e) { _logWindow = null; Focus(); }
private void ButtonBase_ViewLog_OnClick(object sender, RoutedEventArgs e) { if (_logWindow != null) _logWindow.Focus(); else { _logWindow = new LogWindow(); _logWindow.Owner = this; _logWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; _logWindow.CloseClicked += Log_Closed; _logWindow.Show(); } }