Esempio n. 1
0
 private void UpdateSolutions(JSONSolutionTimes jsonSolutionBuildTime, Dictionary <string, TimeSpan> solutions)
 {
     if (solutions.ContainsKey(jsonSolutionBuildTime.Name))
     {
         solutions[jsonSolutionBuildTime.Name] = solutions[jsonSolutionBuildTime.Name] + TimeSpan.FromMilliseconds(jsonSolutionBuildTime.Time);
     }
     else
     {
         solutions.Add(jsonSolutionBuildTime.Name, TimeSpan.FromMilliseconds(jsonSolutionBuildTime.Time));
     }
 }
Esempio n. 2
0
        private void UpdateSolutionMonths(JSONSolutionTimes jsonSolutionBuildTime, Dictionary <SolutionMonth, TimeSpan> solutionMonths)
        {
            var solutionMonth = new SolutionMonth(solution: jsonSolutionBuildTime.Name, month: jsonSolutionBuildTime.Start.Month, year: jsonSolutionBuildTime.Start.Year);

            if (solutionMonths.ContainsKey(solutionMonth))
            {
                solutionMonths[solutionMonth] = solutionMonths[solutionMonth] + TimeSpan.FromMilliseconds(jsonSolutionBuildTime.Time);
            }
            else
            {
                solutionMonths.Add(solutionMonth, TimeSpan.FromMilliseconds(jsonSolutionBuildTime.Time));
            }
        }