public void UpdateImageDisplay() { if (pokemonData == null) { ImageDisplay.Source = null; return; } ImageDisplay.Source = PokemonUtils.GetPkmnImage(pokemonData.DexData.ImagePath); }
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); }
protected bool ReceivedArgumentsAreNotValid(string searchBy, string value) => PokemonUtils.CheckSearchByAndValue(searchBy, value) != null ? true : false;
public void Update() { textRank.Text = PokemonUtils.RankFromInt(Rank); imageRank.Source = new BitmapImage(new Uri("pack://application:,,,/Graphics/Icons/Rank_" + PokemonUtils.RankFromInt(Rank) + ".png")); }