public async Task LoadPokedex() { IsLoading = true; Pokedex = await PokedexService.GetPokemon(); PokemonList = new ObservableCollection <Pokemon>(Pokedex); IsLoading = false; }
public async Task LoadIceDarkPokedex() { IsLoading = true; Pokedex = await PokedexService.GetPokemon(); IcePokemonList = new ObservableCollection <Pokemon>(Pokedex.Where(x => x.Types.Contains("Ice"))); DarkPokemonList = new ObservableCollection <Pokemon>(Pokedex.Where(x => x.Types.Contains("Dark"))); IsLoading = false; }