public TimingDataGridViewModel(DriverPresentationsManager driverPresentationsManager, DisplaySettingsViewModel displaySettingsViewModel, IClassColorProvider classColorProvider) { _refreshGapWatch = Stopwatch.StartNew(); _loadIndex = 0; _driverNameTimingMap = new Dictionary <string, DriverTiming>(); _driverPresentationsManager = driverPresentationsManager; _displaySettingsViewModel = displaySettingsViewModel; _classColorProvider = classColorProvider; DriversViewModels = new ObservableCollection <DriverTimingViewModel>(); }
public TimingDataGridViewModel(DriverPresentationsManager driverPresentationsManager, DisplaySettingsViewModel displaySettingsViewModel, IClassColorProvider classColorProvider) { _refreshGapWatch = Stopwatch.StartNew(); _loadIndex = 0; _driverNameTimingMap = new Dictionary <string, DriverTiming>(); _driverPresentationsManager = driverPresentationsManager; _displaySettingsViewModel = displaySettingsViewModel; _classColorProvider = classColorProvider; DriversViewModels = new ObservableCollection <DriverTimingViewModel>(); PitBoardViewModel = new PitBoardViewModel(); PitBoardViewModel.PitBoard.Lap = "L0"; _driverPresentationsManager.DriverCustomColorChanged += DriverPresentationsManagerOnDriverCustomColorEnabledChanged; }