public bool BajaSeleccion(SeleccionFutbol f, int id) { if (f.GetId() == id) { return(true); } else { return(false); } }
public void QuitarParticipante(SeleccionFutbol f)// "f"===>HIJAS { if (BajaSeleccion(f, f.GetId())) { if (f.GetType().Name == "Entrenador") { numeroEntrenadores--; } else if (f.GetType().Name == "Masajista") { numeroMasajistas--; } Console.WriteLine("Participante tipo " + f.GetType().Name + " suprimido."); participante.Remove(f); } }