public void UpdateImageDisplay()
 {
     if (pokemonData == null)
     {
         ImageDisplay.Source = null;
         return;
     }
     ImageDisplay.Source = PokemonUtils.GetPkmnImage(pokemonData.DexData.ImagePath);
 }
Esempio n. 2
0
 public void Update(DexData dd)
 {
     dexData = dd;
     STRDots.SetStats(dexData.Attributes.GetStatByTag("Strength"), false);
     DEXDots.SetStats(dexData.Attributes.GetStatByTag("Dexterity"), false);
     VITDots.SetStats(dexData.Attributes.GetStatByTag("Vitality"), false);
     SPEDots.SetStats(dexData.Attributes.GetStatByTag("Special"), false);
     INSDots.SetStats(dexData.Attributes.GetStatByTag("Insight"), false);
     ImageDisplay.Source = PokemonUtils.GetPkmnImage(dexData.ImagePath);
 }
Esempio n. 3
0
 protected bool ReceivedArgumentsAreNotValid(string searchBy, string value)
 => PokemonUtils.CheckSearchByAndValue(searchBy, value) != null ? true : false;
Esempio n. 4
0
 public void Update()
 {
     textRank.Text    = PokemonUtils.RankFromInt(Rank);
     imageRank.Source = new BitmapImage(new Uri("pack://application:,,,/Graphics/Icons/Rank_" + PokemonUtils.RankFromInt(Rank) + ".png"));
 }