private void RecomputeSeverities() { GeneralSettingsPageGrid settings = GetGeneralSettings(); //For the time being we are only using Include data for this //Only compute it for include for now const int i = (int)CompileCategory.Include; //for (int i = 0; i < (int)CompileCategory.GatherCount; ++i) { CompileDataset dataset = Datasets[i]; List <uint> thresholdList = settings.OptionNormalizedSeverity ? dataset.normalizedThresholds : settings.GetOptionSeverities(); foreach (CompileValue entry in dataset.collection) { entry.Severity = ComputeSeverity(thresholdList, entry.Max); } } }
private void RecomputeSeverities() { GeneralSettingsPageGrid settings = GetGeneralSettings(); for (int i = 0; i < Enum.GetNames(typeof(CompileCategory)).Length; ++i) { CompileDataset dataset = _datasets[(int)CompileCategory.Include]; List <uint> thresholdList = settings.OptionNormalizedSeverity ? dataset.normalizedThresholds : settings.GetOptionSeverities(); foreach (CompileValue entry in dataset.collection) { entry.Severity = ComputeSeverity(thresholdList, entry.Max); } } }