public ActiveRaceControlViewModel(SharedRaceStateViewModel raceState, IActiveRaceControlService activeRaceControlService, IRaceStartListService startListService, Func <IActiveRaceControlService, CurrentSkierViewModel> currentSkierVmFactory, Func <IActiveRaceControlService, RankingViewModel> rankingVmFactory, IActiveRaceService activeRaceService) { RaceState = raceState; _activeRaceControlService = activeRaceControlService; _startListService = startListService; _activeRaceService = activeRaceService; CurrentSkierViewModel = currentSkierVmFactory(_activeRaceControlService); RankingViewModel = rankingVmFactory(_activeRaceControlService); SetupCommands(); }
public RaceDisplayViewModel(SharedRaceStateViewModel raceState) { RaceState = raceState; OpenCurrentSkierWindowCommand = new RelayCommand(OpenCurrentSkierWindow); OpenRankingWindowCommand = new RelayCommand(OpenRankingWindow); }