public void LogBreakDown(IParticipant participant, TimeSpan time) { var breakdownData = new BreakdownData(); breakdownData.ParticipantName = participant.Name; breakdownData.Time = time; breakdownData.Vehicle = participant.Equipment; Breakdowns.Add(breakdownData); }
public void AddLine(string breakdownKey, string line) { if (!Breakdowns.ContainsKey(breakdownKey)) { Breakdowns.Add(breakdownKey, new List <String>()); } var theLines = (List <String>)Breakdowns[breakdownKey]; theLines.Add(line); Breakdowns[breakdownKey] = theLines; }