private async Task <BitmapImage> LoadPokemonEvoPic(Pokemon pokemonInfo)
        {
            getPokemonPic = new LoadPokemonPic(pokemonInfo.Sprites.FrontDefault, _language);
            PokemonImageModel pIM = await getPokemonPic.LoadPokemonImage();

            return(pIM.PokemonImage);
        }
Ejemplo n.º 2
0
        // Method to load image of selected pokemon from API
        private async Task LoadPokemonImage(Pokemon pokemonInfo)
        {
            getPokemonPic = new LoadPokemonPic(pokemonInfo.Sprites.FrontDefault, _language);
            PokemonImageModel pIM = await getPokemonPic.LoadPokemonImage();

            PokeImage = pIM.PokemonImage;

            NotifyOfPropertyChange(() => PokeImage);
        }
Ejemplo n.º 3
0
        // Load pictures in header
        private async Task LoadPictures()
        {
            string soLogo   = "https://raw.githubusercontent.com/SO-Eng/SoftwOrt-PokeApi.co/master/SOPokemonUI/Logo/SO-Logo.png";
            string pokeLogo = "https://raw.githubusercontent.com/SO-Eng/SoftwOrt-PokeApi.co/master/SOPokemonUI/Logo/SOPokedex.ico";

            getAboutPics = new LoadPokemonPic(soLogo, Language);
            PokemonImageModel pIMsO = await getAboutPics.LoadPokemonImage();

            SoLogo = pIMsO.PokemonImage;

            getAboutPics = new LoadPokemonPic(pokeLogo, Language);
            PokemonImageModel pIMpO = await getAboutPics.LoadPokemonImage();

            PokeLogo = pIMpO.PokemonImage;

            NotifyOfPropertyChange(() => SoLogo);
            NotifyOfPropertyChange(() => PokeLogo);
        }