コード例 #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();
            });
        }