Exemple #1
0
 private void MeasureSolution(Solution solution)
 {
     IsBusy           = true;
     _currentSolution = _measureService.Measure(solution);
     Stats            = MeasureUtils.CalculateStats(_currentSolution);
     CreateAndroidPlot(Stats);
     CreateIOSPlot(Stats);
     IsBusy = false;
     _fileDialogService.CreateDialog(EnumTypeDialog.Information
                                     , "Consider sharing your applications stats clicking on bottom left link and filling the form\nData collected this way will be public accessible by the community"
                                     , "Sharing");
 }
Exemple #2
0
        public Solution Measure(Solution solution)
        {
            MeasureUtils.File = _fileManagerService;
            Parallel.ForEach(solution.Projects, (project) =>
            {
                Parallel.ForEach(project.Files, (programmingFile) =>
                {
                    programmingFile.LOC = MeasureUtils.CalculateLOC(programmingFile);
                });
            });

            solution.Stats = MeasureUtils.CalculateStats(solution);
            return(solution);
        }