Esempio n. 1
0
 public ViewModelLocator()
 {
     mediator            = new Mediator();
     dbContextFactory    = new DefaultDbContextFactory();
     teamBuddyRepository = new TeamBuddyRepository(dbContextFactory, _mapper);
     messageBoxService   = new MessageBoxService();
 }
Esempio n. 2
0
        public HomeTeamListViewModel(IMediator mediator, ITeamBuddyRepository teamBuddyRepository)
        {
            this.mediator            = mediator;
            this.teamBuddyRepository = teamBuddyRepository;

            TeamSelectedCommand = new RelayCommand <TeamListModel>(TeamSelected);

            mediator.Register <LogInMessage>(ListUserTeams);
            mediator.Register <ReloadMyTeamsMessage>(ReloadMyTeams);
        }