private void SearchProgressButton_OnClick(object sender, RoutedEventArgs e) { ResultsGrid.Visibility = Visibility.Visible; bool currentFileOnly = CurrentFileRadioButton.IsChecked.HasValue && CurrentFileRadioButton.IsChecked.Value; _logViewModel.BeginSearch(FindTextTextBox.Text, currentFileOnly); }