Example #1
0
 public Tri(string nature, int distanceNatation, int distanceVelo, int distanceCourse)
 {
     this.nature   = nature;
     this.natation = new Epreuve("natation", distanceNatation);
     this.velo     = new Epreuve("velo", distanceVelo);
     this.course   = new Epreuve("course", distanceCourse);
     List <Participant> lesParticipants = new List <Participant>();
 }
Example #2
0
 public void Add(Epreuve uneEpreuve, int tempsRealise)
 {
     Resultat result = new Resultat(unParticipant, uneEpreuve, tempsRealise);
     {
         if (resultatPresent(uneEpreuve.GetNom()))
         {
             this.lesResultats.Add(result);
         }
     }
 }
Example #3
0
 public bool resultatPresent(Epreuve uneEpreuve)
 {
     foreach (Resultat result in lesResultats)
     {
         if (result.GetEpreuve().GetNom() == uneEpreuve.GetNom())
         {
             return(true);
         }
     }
     return(false);
 }
Example #4
0
 public Resultat(Participant unParticipant, Epreuve uneEpreuve, int tempsRealise)
 {
     this.unParticipant = unParticipant;
     this.uneEpreuve    = uneEpreuve;
     this.tempsRealise  = tempsRealise;
 }