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); this.lesParticipants = new List <Participant>(); }
private bool resultatPresent(Epreuve unEpreuve) { for (int i = 0; i < lesResultats.Count; i++) { if (lesResultats[i].GetEpreuve().GetNom() == unEpreuve.GetNom()) { return(true); } } return(false); }
public void Add(Epreuve uneEpreuve, int tempsRealise) { }
public Resultat(Participant unParticipant, Epreuve uneEpreuve, int tempsRealise) { this.unParticipant = unParticipant; this.uneEpreuve = uneEpreuve; this.tempsRealise = tempsRealise; }