private void btnAgregar_Click(object sender, EventArgs e) { frmAltaPokemon alta = new frmAltaPokemon(); alta.ShowDialog(); cargarDatos(); }
private void btnModificar_Click(object sender, EventArgs e) { Pokemon modificar; modificar = (Pokemon)dgvListadoPOKEMONS.CurrentRow.DataBoundItem; frmAltaPokemon frmModificar = new frmAltaPokemon(modificar); // frmModificar.Text = "Modificar"; frmModificar.ShowDialog(); cargarDatos(); }