コード例 #1
0
 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>();
 }
コード例 #2
0
        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;
        }