public static void AddSegment(this IRun run, string name, Time pbSplitTime = default(Time), Time bestSegmentTime = default(Time), Image icon = null, Time splitTime = default(Time), IList <IIndexedTime> segmentHistory = null) { var segment = new Segment(name, pbSplitTime, bestSegmentTime, icon, splitTime); if (segmentHistory != null) { segment.SegmentHistory = segmentHistory; } run.Add(segment); }
bool Add(string type, string value) { _currentRun.Add(type, value); return(true); }