Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            PokemonSearch.PokemonInfo[] asfl = Pokemonshowdown.PStoPokemon(PS.Text.Trim());

            for (int i = 0; i < 3; ++i)
            {
                for (int j = 0; j < 2; ++j)
                {
                    if (i * 2 + j > asfl.Length - 1)
                    {
                        update(i, j, null);
                        continue;
                    }
                    update(i, j, asfl[i * 2 + j]);
                    // if (temp[i * 2 + j] == null) continue;
                    // qq[i,j] = new PokemonInfo(temp[i * 2 + j]);
                    // qq[i,j].show(this, 500 + 300 * j, 50 + 250 * i);
                }
            }
        }
Example #2
0
        private void button21_Click(object sender, EventArgs e)
        {
            PokemonSearch.PokemonInfo[] asfl = new PokemonSearch.PokemonInfo[6];
            for (int i = 0; i < 3; ++i)
            {
                for (int j = 0; j < 2; ++j)
                {
                    qq[i, j].poke.Item    = qq[i, j].Item.Text;
                    qq[i, j].poke.Ability = qq[i, j].Ability.Text;
                    qq[i, j].poke.name    = (String)qq[i, j].Name.SelectedItem;
                    for (int q = 0; q < qq[i, j].poke.move.Length; ++q)
                    {
                        qq[i, j].poke.move[q] = qq[i, j].Move[q].Text;
                    }
                    asfl[i * 2 + j] = qq[i, j].poke;

                    // if (temp[i * 2 + j] == null) continue;
                    // qq[i,j] = new PokemonInfo(temp[i * 2 + j]);
                    // qq[i,j].show(this, 500 + 300 * j, 50 + 250 * i);
                }
            }
            PS.Text = (Pokemonshowdown.PokemontoPS(asfl, true));
        }