public LoadedLapsCache(ITelemetryViewsSynchronization telemetryViewsSynchronization) { _loadedLaps = new List <LapTelemetryDto>(); telemetryViewsSynchronization.LapLoaded += TelemetryViewsSynchronizationOnLapLoaded; telemetryViewsSynchronization.LapUnloaded += TelemetryViewsSynchronizationOnLapUnloaded; telemetryViewsSynchronization.ReferenceLapSelected += TelemetryViewsSynchronizationOnReferenceLapSelected; }
public SnapshotSectionController(IReplayController replayController, ITelemetryViewsSynchronization telemetryViewsSynchronization, ISettingsProvider settingsProvider) { _abstractSnapshotViewModels = new List <ISnapshotViewModel>(); _replayController = replayController; _telemetryViewsSynchronization = telemetryViewsSynchronization; _settingsProvider = settingsProvider; }
public TelemetryLoadController(ITelemetryRepositoryFactory telemetryRepositoryFactory, ISettingsProvider settingsProvider, ITelemetryViewsSynchronization telemetryViewsSynchronization) { _cachedTelemetries = new ConcurrentDictionary <string, LapTelemetryDto>(); _loadedSessions = new List <string>(); _knownLaps = new List <string>(); _telemetryViewsSynchronization = telemetryViewsSynchronization; _telemetryRepository = telemetryRepositoryFactory.Create(settingsProvider); }
public MapViewController(ISettingsProvider settingsProvider, IMapsLoaderFactory mapsLoaderFactory, ITelemetryViewsSynchronization telemetryViewsSynchronization, ILapColorSynchronization lapColorSynchronization, IDataPointSelectionSynchronization dataPointSelectionSynchronization) { _fakeDrivers = new Dictionary <string, MapViewDriverInfoFacade>(); _telemetryViewsSynchronization = telemetryViewsSynchronization; _lapColorSynchronization = lapColorSynchronization; _dataPointSelectionSynchronization = dataPointSelectionSynchronization; _mapsLoader = mapsLoaderFactory.Create(settingsProvider.MapRepositoryPath); _selectedPoints = new HashSet <TimedValue>(); }
public CompareToReferenceDataExtractor(ITelemetryViewsSynchronization telemetryViewsSynchronization, TelemetryStoryBoardFactory telemetryStoryBoardFactory, ILoadedLapsCache loadedLapsCache) { _telemetryViewsSynchronization = telemetryViewsSynchronization; _telemetryStoryBoardFactory = telemetryStoryBoardFactory; _loadedLapsCache = loadedLapsCache; _loadedTelemetries = new Dictionary <string, TelemetryStoryboard>(); Subscribe(); InitializeAlreadyLoadedLaps(); }
public AggregatedChartsController(IEnumerable <IAggregatedChartProvider> aggregatedChartProviders, IMainWindowViewModel mainWindowViewModel, ILoadedLapsCache loadedLapsCache, IWindowService windowService, IViewModelFactory viewModelFactory, ITelemetryViewsSynchronization telemetryViewsSynchronization) { _loadedLapsCache = loadedLapsCache; _windowService = windowService; _viewModelFactory = viewModelFactory; _telemetryViewsSynchronization = telemetryViewsSynchronization; _mainWindowViewModel = mainWindowViewModel; _loadedLapsCache = loadedLapsCache; _aggregatedChartProviders = aggregatedChartProviders.ToList(); }
public ReplayController(IViewModelFactory viewModelFactory, ITelemetryViewsSynchronization telemetryViewsSynchronization, ISettingsProvider settingsProvider, TelemetryStoryBoardFactory telemetryStoryBoardFactory) { _propertyEventsEnabled = true; _storyboards = new Dictionary <string, TelemetryStoryboard>(); _storyBoardsShift = new Dictionary <string, TimeSpan>(); _viewModelFactory = viewModelFactory; _telemetryViewsSynchronization = telemetryViewsSynchronization; _settingsProvider = settingsProvider; _telemetryStoryBoardFactory = telemetryStoryBoardFactory; }
public TelemetryLoadController(ITelemetryRepositoryFactory telemetryRepositoryFactory, ISettingsProvider settingsProvider, ITelemetryViewsSynchronization telemetryViewsSynchronization, IEnumerable <IMissingTelemetryFiller> missingTelemetryFillers, IDataPointSelectionSynchronization dataPointSelectionSynchronization) { _cachedTelemetries = new ConcurrentDictionary <string, LapTelemetryDto>(); _loadedSessions = new List <string>(); _knownLaps = new List <string>(); _telemetryViewsSynchronization = telemetryViewsSynchronization; _dataPointSelectionSynchronization = dataPointSelectionSynchronization; _missingTelemetryFillers = missingTelemetryFillers.ToArray(); _telemetryRepository = telemetryRepositoryFactory.Create(settingsProvider); }
protected AbstractGraphPanelController(IMainWindowViewModel mainWindowViewModel, ITelemetryViewsSynchronization telemetryViewsSynchronization, ILapColorSynchronization lapColorSynchronization, ISettingsProvider settingsProvider, IGraphViewSynchronization graphViewSynchronization, ISettingsController telemetrySettings) { MainWindowViewModel = mainWindowViewModel; _telemetryViewsSynchronization = telemetryViewsSynchronization; _lapColorSynchronization = lapColorSynchronization; _settingsProvider = settingsProvider; _graphViewSynchronization = graphViewSynchronization; _telemetrySettings = telemetrySettings; _loadedLaps = new List <LapTelemetryDto>(); }
public OpenWindowController(IMainWindowViewModel mainWindowViewModel, ITelemetryLoadController telemetryLoadController, IViewModelFactory viewModelFactory, ITelemetryViewsSynchronization telemetryViewsSynchronization) { _loadedSessions = new List <SessionInfoDto>(); _mainWindowViewModel = mainWindowViewModel; _telemetryLoadController = telemetryLoadController; _viewModelFactory = viewModelFactory; _telemetryViewsSynchronization = telemetryViewsSynchronization; _openWindowViewModel = viewModelFactory.Create <IOpenWindowViewModel>(); _addWindowViewModel = viewModelFactory.Create <IOpenWindowViewModel>(); _mainWindowViewModel.LapSelectionViewModel.OpenWindowViewModel = _openWindowViewModel; _mainWindowViewModel.LapSelectionViewModel.AddWindowViewModel = _addWindowViewModel; BindCommands(); }
public LapPickerController(ITelemetryViewsSynchronization telemetryViewsSynchronization, ITelemetryLoadController telemetryLoadController, IMainWindowViewModel mainWindowViewModel, IViewModelFactory viewModelFactory, IColorPaletteProvider colorPaletteProvider, IOpenWindowController openWindowController, ISettingsWindowController settingsWindowController, IUserInputProvider userInputProvider) { _allAvailableLaps = new List <LapSummaryDto>(); _loadedLaps = new List <LapSummaryDto>(); _telemetryViewsSynchronization = telemetryViewsSynchronization; _telemetryLoadController = telemetryLoadController; _lapSelectionViewModel = mainWindowViewModel.LapSelectionViewModel; _viewModelFactory = viewModelFactory; _colorPaletteProvider = colorPaletteProvider; _openWindowController = openWindowController; _settingsWindowController = settingsWindowController; _userInputProvider = userInputProvider; }
public MainWindowController(ISettingsProvider settingsProvider, ITelemetryLoadController telemetryLoadController, ILapPickerController lapPickerController, IViewModelFactory viewModelFactory, IMainWindowViewModel mainWindowViewModel, ISnapshotSectionController snapshotSectionController, IMapViewController mapViewController, ITelemetryViewsSynchronization telemetryViewsSynchronization, IGraphPanelController[] graphPanelControllers, IAggregatedChartsController aggregatedChartsController) { _settingsProvider = settingsProvider; _telemetryLoadController = telemetryLoadController; _lapPickerController = lapPickerController; _viewModelFactory = viewModelFactory; _mainWindowViewModel = mainWindowViewModel; _snapshotSectionController = snapshotSectionController; _mapViewController = mapViewController; _telemetryViewsSynchronization = telemetryViewsSynchronization; _aggregatedChartsController = aggregatedChartsController; _leftGraphPanelController = graphPanelControllers.First(x => x.IsLetPanel); _rightGraphPanelController = graphPanelControllers.First(x => !x.IsLetPanel); _snapshotSectionController.MainWindowViewModel = _mainWindowViewModel; _mapViewController.MapViewViewModel = _mainWindowViewModel.MapViewViewModel; }
public LeftGraphPanelController(IGraphViewModelsProvider graphViewModelsProvider, IMainWindowViewModel mainWindowViewModel, ITelemetryViewsSynchronization telemetryViewsSynchronization, ILapColorSynchronization lapColorSynchronization, ISettingsProvider settingsProvider, IGraphViewSynchronization graphViewSynchronization, ITelemetrySettingsRepository telemetrySettingsRepository) : base(mainWindowViewModel, telemetryViewsSynchronization, lapColorSynchronization, settingsProvider, graphViewSynchronization, telemetrySettingsRepository) { _graphViewModelsProvider = graphViewModelsProvider; }
public LapStintSynchronization(ITelemetryViewsSynchronization telemetryViewsSynchronization, ILoadedLapsCache loadedLapsCache) { telemetryViewsSynchronization.LapLoaded += TelemetryViewsSynchronizationOnLapLoaded; _loadedLapsCache = loadedLapsCache; _lapToStintMap = new Dictionary <string, int>(); }
public SettingsController(ITelemetrySettingsRepository telemetrySettingsRepository, ITelemetryViewsSynchronization telemetryViewsSynchronization, IEnumerable <IDefaultCarPropertiesProvider> defaultCarPropertiesProviders) { _telemetrySettingsRepository = telemetrySettingsRepository; _telemetryViewsSynchronization = telemetryViewsSynchronization; _defaultCarPropertiesProviders = defaultCarPropertiesProviders.ToList(); }
public MapViewController(IMapsLoaderFactory mapsLoaderFactory, ITelemetryViewsSynchronization telemetryViewsSynchronization) { _fakeDrivers = new Dictionary <string, MapViewDriverInfoFacade>(); _telemetryViewsSynchronization = telemetryViewsSynchronization; _mapsLoader = mapsLoaderFactory.Create(); }