public Mark BestMarkOfEvent(MeetEvent meetEvent) { foreach (Mark mark in BestMarks) { if (mark.Event == meetEvent) { return(mark); } } return(null); }
public Mark BestMarkOfSeasonEvent(MeetEvent meetEvent, string season) { foreach (var mark in SeasonBestMarks[season]) { if (mark.Event == meetEvent) { return(mark); } } return(null); }
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"; }