Example #1
0
 public TimingDataViewModel()
 {
     SessionInfoViewModel     = new SessionInfoViewModel();
     _driverLapsWindowManager = new DriverLapsWindowManager(() => Gui, () => SelectedDriverTiming);
     DoubleLeftClickCommand   = _driverLapsWindowManager.OpenWindowCommand;
     _reportCreation          = new ReportCreationViewModel(DisplaySettings);
 }
Example #2
0
 public TimingDataViewModel(DriverLapsWindowManager driverLapsWindowManager, DisplaySettingsViewModel displaySettingsViewModel, DriverPresentationsManager driverPresentationsManager, ISessionTelemetryControllerFactory sessionTelemetryControllerFactory)
 {
     TimingDataGridViewModel            = new TimingDataGridViewModel(driverPresentationsManager, displaySettingsViewModel, new ClassColorProvider(new BasicColorPaletteProvider()));
     SessionInfoViewModel               = new SessionInfoViewModel();
     TrackInfoViewModel                 = new TrackInfoViewModel();
     _driverLapsWindowManager           = driverLapsWindowManager;
     _driverPresentationsManager        = driverPresentationsManager;
     _sessionTelemetryControllerFactory = sessionTelemetryControllerFactory;
     DoubleLeftClickCommand             = _driverLapsWindowManager.OpenWindowCommand;
     ReportsController         = new ReportsController(DisplaySettingsViewModel);
     DisplaySettingsViewModel  = displaySettingsViewModel;
     SituationOverviewProvider = new SituationOverviewProvider(TimingDataGridViewModel, displaySettingsViewModel);
 }
 public TimingDataViewModel(DriverLapsWindowManager driverLapsWindowManager, ISettingsProvider settingsProvider, DriverPresentationsManager driverPresentationsManager,
                            ISessionTelemetryControllerFactory sessionTelemetryControllerFactory, IRatingProvider ratingProvider, ITrackRecordsController trackRecordsController, IChampionshipCurrentEventPointsProvider championshipCurrentEventPointsProvider,
                            ISessionEventProvider sessionEventProvider)
 {
     TimingDataGridViewModel            = new TimingDataGridViewModel(driverPresentationsManager, settingsProvider.DisplaySettingsViewModel, new ClassColorProvider(new BasicColorPaletteProvider()));
     SessionInfoViewModel               = new SessionInfoViewModel();
     TrackInfoViewModel                 = new TrackInfoViewModel();
     _driverLapsWindowManager           = driverLapsWindowManager;
     _settingsProvider                  = settingsProvider;
     _sessionTelemetryControllerFactory = sessionTelemetryControllerFactory;
     _ratingProvider         = ratingProvider;
     _trackRecordsController = trackRecordsController;
     _championshipCurrentEventPointsProvider = championshipCurrentEventPointsProvider;
     _sessionEventProvider     = sessionEventProvider;
     DoubleLeftClickCommand    = _driverLapsWindowManager.OpenWindowCommand;
     DisplaySettingsViewModel  = settingsProvider.DisplaySettingsViewModel;
     TrackRecordsViewModel     = _trackRecordsController.TrackRecordsViewModel;
     SituationOverviewProvider = new SituationOverviewProvider(TimingDataGridViewModel, settingsProvider.DisplaySettingsViewModel);
 }