private void ResultsListView_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { if (ResultsListView.SelectedItem is SearchResult result) { _logViewModel.BeginNewReadInSpecificFileAtByteLocation(result.ByteStartingPosition, result.LogFilePath); } }
private void CurrentFileComboBox_OnSelected(object sender, RoutedEventArgs e) { if (!CurrentFileComboBox.IsDropDownOpen && !CurrentFileComboBox.IsKeyboardFocused) { return; } LogViewModel.BeginNewReadInSpecificFileAtByteLocation(0, CurrentFileComboBox.SelectedItem as string); }