private void Btn_ingresarJugador_Click(object sender, EventArgs e) { this.Close(); frm_adminJugadores adminJugadores = new frm_adminJugadores(); adminJugadores.Show(); adminJugadores.Txt_codigoJugador.Enabled = false; adminJugadores.Txt_dpi.Enabled = false; adminJugadores.Cbo_equipo.Enabled = false; adminJugadores.Txt_nombreJugador.Enabled = false; adminJugadores.Txt_apellidoJugador.Enabled = false; adminJugadores.Txt_numeroCamisola.Enabled = false; adminJugadores.Txt_telefono.Enabled = false; }
private void Btn_seleccionar_Click(object sender, EventArgs e) { frm_adminJugadores adminJugadores = new frm_adminJugadores(); adminJugadores.Txt_codigoJugador.Text = Convert.ToString(Dgv_jugadores.CurrentRow.Cells[0].Value); adminJugadores.Txt_nombreJugador.Text = Convert.ToString(Dgv_jugadores.CurrentRow.Cells[1].Value); adminJugadores.Txt_apellidoJugador.Text = Convert.ToString(Dgv_jugadores.CurrentRow.Cells[2].Value); adminJugadores.Txt_numeroCamisola.Text = Convert.ToString(Dgv_jugadores.CurrentRow.Cells[4].Value); adminJugadores.Txt_dpi.Text = Convert.ToString(Dgv_jugadores.CurrentRow.Cells[6].Value); adminJugadores.Txt_telefono.Text = Convert.ToString(Dgv_jugadores.CurrentRow.Cells[5].Value); this.Close(); adminJugadores.Txt_codigoJugador.Enabled = false; adminJugadores.Txt_dpi.Enabled = false; adminJugadores.Cbo_equipo.Enabled = false; adminJugadores.Txt_nombreJugador.Enabled = false; adminJugadores.Txt_apellidoJugador.Enabled = false; adminJugadores.Txt_numeroCamisola.Enabled = false; adminJugadores.Txt_telefono.Enabled = false; adminJugadores.Show(); }