コード例 #1
0
        public TeamViewModel(INavigationService navigationService, IPageDialogService pageDialogService, ITeamApiService teamApiService) : base(navigationService, pageDialogService)
        {
            _teamApiService    = teamApiService;
            _navigationService = navigationService;

            LoadTeams();

            ShowDetailCommand = new DelegateCommand <Datum>(async(teamDetails) =>
            {
                var navParameters = new NavigationParameters
                {
                    { ParameterConstants.Team, teamDetails }
                };
                await _navigationService.NavigateAsync(NavigationConstants.TeamDetails, navParameters);
            });
        }
コード例 #2
0
 public TeamViewModel(IAlertService alertService) : base(alertService)
 {
     teamApiService = new TeamApiService();
     GetTeams       = new Command(LoadTeams);
 }