Esempio n. 1
0
 public RoundViewModel(IRoundService roundService, INavigationServiceEx navigationService, IMessengerCache messengerCache)
 {
     _roundService      = roundService;
     _navigationService = navigationService;
     _messengerCache    = messengerCache;
     SelectedRound      = _messengerCache.CachedSelectedRound;
     Messenger.Default.Register <Round>(this, (round) => { SelectedRound = round; });
 }
        public EditTeamViewModel(ITeamService teamService, INavigationServiceEx navigationService, IMessengerCache messengerCache)
        {
            _teamService       = teamService;
            _navigationService = navigationService;
            _messengerCache    = messengerCache;

            SelectedTeam = _messengerCache.CachedSelectedTeam;
            Messenger.Default.Register <Team>(this, (team) => { SelectedTeam = team; });
        }
Esempio n. 3
0
        public EditQuizViewModel(IQuizService quizService, INavigationServiceEx navigationServiceEx, IMessengerCache messengerCache)
        {
            _quizService       = quizService;
            _navigationService = navigationServiceEx;
            _messengerCache    = messengerCache;

            SelectedQuiz = _messengerCache.CachedSelectedQuiz;
            Messenger.Default.Register <Quiz>(this, (quiz) => { SelectedQuiz = quiz; });
            FetchListOfQuizzes();
        }