Esempio n. 1
0
        // Run from main thread.
        private void DoLookupPokemon()
        {
            string name = PlayerName.Text;

            PlayerName.ResignFirstResponder();

            if (name.Length < 1)
            {
                ShowMessageBox("Please correct input", "Please input your name in order to proceed");
                return;
            }

            if (!ListingPokemonTask.IsCompleted)
            {
                ShowActivityIndicator();
            }
            Task.Run(() => LookupPokemon(name));
        }