示例#1
0
        public CompositeComparisons Clone()
        {
            var clone = new CompositeComparisons();

            clone.Comparisons = new Dictionary <string, Time>(Comparisons);
            return(clone);
        }
示例#2
0
 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);
 }
示例#3
0
 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>();
 }
示例#4
0
 public CompositeComparisons Clone()
 {
     var clone = new CompositeComparisons();
     clone.Comparisons = new Dictionary<string, Time>(Comparisons);
     return clone;
 }