private bool SaveLogOutputOptions() { if (IsLogOutputEnabled.IsChecked == true) { if (!Directory.Exists(LogPath.Text)) { LogOutputTab.Focus(); MessageBox.Show( "The specified path does not exist. Please enter a valid path.", "vmPing Error", MessageBoxButton.OK, MessageBoxImage.Error); LogPath.Focus(); return(false); } ApplicationOptions.IsLogOutputEnabled = true; ApplicationOptions.LogPath = LogPath.Text; } else { ApplicationOptions.IsLogOutputEnabled = false; } return(true); }