Esempio n. 1
0
        private async Task LookupPokemon(string playerName)
        {
            // Wait that we have the list of pokemon loaded
            await ListingPokemonTask;

            var results = new List <SummaryPokemon>();

            results.Add(PokeLogic.GetClosestPokemonName(playerName, PokemonList));
            ResultPokemon = results [0];

            // Once found print it
            BeginInvokeOnMainThread(() => {
                var source           = new ResultTableSource(results);
                source.OnRowSelected = this.RowSelected;
                ResultTable.Source   = source;
                ResultTable.ReloadData();
                HideActivityIndicator();
            });
        }
Esempio n. 2
0
 /// <summary>
 /// Call this at initialization to give the necessary information.
 /// </summary>
 public void InitWithPokemon(SummaryPokemon pokemon)
 {
     ViewedPokemon = pokemon;
 }