public CompositeComparisons Clone() { var clone = new CompositeComparisons(); clone.Comparisons = new Dictionary <string, Time>(Comparisons); return(clone); }
static StandardComparisonGeneratorsFactory() { CompositeComparisons.AddShortComparisonName(BestSegmentsComparisonGenerator.ComparisonName, BestSegmentsComparisonGenerator.ShortComparisonName); CompositeComparisons.AddShortComparisonName(Run.PersonalBestComparisonName, "PB"); CompositeComparisons.AddShortComparisonName(AverageSegmentsComparisonGenerator.ComparisonName, AverageSegmentsComparisonGenerator.ShortComparisonName); CompositeComparisons.AddShortComparisonName(WorstSegmentsComparisonGenerator.ComparisonName, WorstSegmentsComparisonGenerator.ShortComparisonName); CompositeComparisons.AddShortComparisonName(PercentileComparisonGenerator.ComparisonName, PercentileComparisonGenerator.ShortComparisonName); }
public Segment( string name, Time pbSplitTime = default(Time), Time bestSegmentTime = default(Time), Image icon = null, Time splitTime = default(Time)) { Comparisons = new CompositeComparisons(); Name = name; PersonalBestSplitTime = pbSplitTime; BestSegmentTime = bestSegmentTime; SplitTime = splitTime; Icon = icon; SegmentHistory = new List<IIndexedTime>(); }
public CompositeComparisons Clone() { var clone = new CompositeComparisons(); clone.Comparisons = new Dictionary<string, Time>(Comparisons); return clone; }