Exemplo n.º 1
0
        public MainViewModel(IPokedexService pokedexService)
        {
            _pokedexService = pokedexService;

            FilterItemsCommand = new Command <SelectableItem <string> >((item) => {
                item.Selected = !item.Selected;
                FilterItems(currentPaged.Results);
            });

            ChangePageCommand = new Command <int>(async(page) => await ChangePageAsync(page));

            DisplayDetailsCommand = new Command <Pokemon>(OpenDetails);
        }
Exemplo n.º 2
0
 public PokemonController(IPokedexService pokedexService)
 {
     _pokedexService = pokedexService;
 }
Exemplo n.º 3
0
 public PokedexController(IPokedexService pokedexService)
 {
     this.pokedexService = pokedexService;
 }
Exemplo n.º 4
0
 public BattleService(IPokedexService pokedexService)
 {
     _pokedexService = pokedexService;
 }