private void btnShowPokemon_Click(object sender, EventArgs e) { OPokemon p = Pokedex.LoadPokemonFromXML(textBoxEnterPokemonId.Text); if (p != null) { textBoxShowPokemonData.Text = p.Show(); } else { MessageBox.Show("Pokémon not finded"); } }