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