private void linkLabelGoToVerEditarElimTeam_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { VerEditarEliminarTeam vistaTeam = new VerEditarEliminarTeam(); AddOwnedForm(vistaTeam); vistaTeam.pasarInfo(eqDelTab); this.Hide(); vistaTeam.Show(); }
private void buttonVerTeam_Click(object sender, EventArgs e) { if (equipoSeleccionado != null) { VerEditarEliminarTeam vistaTeam = new VerEditarEliminarTeam(); vistaTeam.pasarInfo(equipoSeleccionado); vistaTeam.vieneDeHome = true; AddOwnedForm(vistaTeam); vistaTeam.ShowDialog(); } else { MessageBox.Show("Debe seleccionar un equipo"); } }