コード例 #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
ファイル: Segment.cs プロジェクト: xarrez/LiveSplit
 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;
 }