public CompetitionViewModel(IMatchTrackerRepo matchTrackerRepo, IWindowManager windowManager) { _matchTrackerRepo = matchTrackerRepo; _windowManager = windowManager; Competitions = CompetitionHelper.CurrentCompetitons(_matchTrackerRepo.GetCompetitions()); }
public MatchViewModel(IMatchTrackerRepo matchTrackerRepo, IWindowManager windowManager, CompetitionModel selectedCompetition) { _matchTrackerRepo = matchTrackerRepo; _windowManager = windowManager; Matches = CompetitionHelper.MatchConvertor(_matchTrackerRepo.GetMatchesForCompetition(selectedCompetition.Code)); }