Esempio n. 1
0
        public Mark BestMarkOfEvent(MeetEvent meetEvent)
        {
            foreach (Mark mark in BestMarks)
            {
                if (mark.Event == meetEvent)
                {
                    return(mark);
                }
            }

            return(null);
        }
Esempio n. 2
0
        public Mark BestMarkOfSeasonEvent(MeetEvent meetEvent, string season)
        {
            foreach (var mark in SeasonBestMarks[season])
            {
                if (mark.Event == meetEvent)
                {
                    return(mark);
                }
            }

            return(null);
        }
Esempio n. 3
0
 public Mark(MeetEvent @event, string result, string season, Athlete athlete, string date)
 {
     Event   = @event;
     Result  = result;
     Season  = season;
     Athlete = athlete;
     Date    = date;
     Type    = @event.Name.EndsWith("Meters") || @event.Name.EndsWith("Relay") || @event.Name.EndsWith("(XC)") ||
               @event.Name.EndsWith("Steeplechase") || @event.Name.EndsWith("Mile") ||
               @event.Name.EndsWith("Hurdles")
                         ? "time"
                         : "length";
 }