Example #1
0
        private void X_Click(object sender, EventArgs e)
        {
            this.Hide();
            Excell eligePokemon = new Excell();

            eligePokemon.Show();
        }
        private void X_Click(object sender, EventArgs e)
        {
            Excell eligePokemon = new Excell();

            eligePokemon.ShowDialog();
            idActual = eligePokemon.idSeleccionado;
            //MessageBox.Show(eligePokemon.idSeleccionado.ToString());
            misPokemons = consultas.getPokemonPorId(eligePokemon.idSeleccionado);

            nombrePokemon.Text = misPokemons.Rows[0]["nombre"].ToString();
            pictureBox1.Image  = convierteBlobAImagen((byte[])misPokemons.Rows[0]["imagen"]);
            id.Text            = misPokemons.Rows[0]["id"].ToString();
            tipo.Text          = misPokemons.Rows[0]["tipo1"].ToString();
            habilidad.Text     = misPokemons.Rows[0]["habilidad"].ToString();
            especie.Text       = misPokemons.Rows[0]["especie"].ToString();
            habitat.Text       = misPokemons.Rows[0]["habitat"].ToString();
            altura.Text        = misPokemons.Rows[0]["altura"].ToString();
            peso.Text          = misPokemons.Rows[0]["peso"].ToString();
        }