예제 #1
0
 public bool BajaSeleccion(SeleccionFutbol f, int id)
 {
     if (f.GetId() == id)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 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);
     }
 }