Example #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);
        }
Example #2
0
 public PokemonController(IPokedexService pokedexService)
 {
     _pokedexService = pokedexService;
 }
Example #3
0
 public PokedexController(IPokedexService pokedexService)
 {
     this.pokedexService = pokedexService;
 }
Example #4
0
 public BattleService(IPokedexService pokedexService)
 {
     _pokedexService = pokedexService;
 }