コード例 #1
0
        public SingleTournamentViewModel(IChGKWebService service)
		{
            Title = StringResources.Tournament;

			_service = service;

			DataLoader = new DataLoader ();
		}
コード例 #2
0
        public RandomQuestionsViewModel(IChGKWebService service, IGAService gaService)
		{
			Title = StringResources.RandomQuestions;

            _service = service;
            _gaService = gaService;

			DataLoader = new DataLoader ();
		}
コード例 #3
0
        public SearchQuestionsResultsViewModel(IChGKWebService service)
        {
            Title = StringResources.SearchResults;

            _service = service;

            DataLoader = new DataLoader();
            _loadMoreHelper = new LoadMoreHelper<ISearchQuestionsResult>() { OnLastItemShown = SearchQuestionsResultsViewModel_Showing };
        }
コード例 #4
0
ファイル: TeamsViewModel.cs プロジェクト: fatelord/chgk
        public TeamsViewModel(ITeamsService service, IMvxMessenger messenger, IFirstViewStartInfoProvider firstViewStartInfoProvider, IGAService gaService)
        {
            _service = service;
            _firstViewStartInfoProvider = firstViewStartInfoProvider;
            _gaService = gaService;

            Title = StringResources.Teams;

            DataLoader = new DataLoader();
        }
コード例 #5
0
        public EnterResultsViewModel(ITeamsService service, IMvxMessenger messenger, IGAService gaService)
		{
			_teamsService = service;
            _messenger = messenger;
            _gaService = gaService;

			_teamsChangedToken = messenger.Subscribe<TeamsChangedMessage> (OnTeamsChanged);
			_resultsChangedToken = messenger.Subscribe<ResultsChangedMessage> (OnResultsChanged);

			DataLoader = new DataLoader ();
		}
コード例 #6
0
		public LastAddedTournamentsViewModel (IChGKWebService service, IFirstViewStartInfoProvider firstViewStartInfoProvider, IGAService gaService)
		{
            Title = StringResources.LastAdded;

			_service = service;
            _firstViewStartInfoProvider = firstViewStartInfoProvider;
            _gaService = gaService;

			DataLoader = new DataLoader ();
            _loadMoreHelper = new LoadMoreHelper<ITournament>() { OnLastItemShown = OnLastItemShown };
		}
コード例 #7
0
ファイル: TourViewModel.cs プロジェクト: fatelord/chgk
		public TourViewModel (IChGKWebService service)
		{
			_service = service;

			DataLoader = new DataLoader ();
		}