void RuleSetOnValidationCompleted(object sender, ValidationCompletedEventArgs validationCompletedEventArgs) { if (View == null || View.IsDisposed) { return; } if (!validationCompletedEventArgs.Successful) { var items = new Dictionary <RuleType, List <RuleSetValidationResultItem> >(); var dictionary = CaptionHelper.GetLocalizedItems("Enums/" + typeof(RuleType).FullName); foreach (var pair in dictionary) { var ruleType = (RuleType)Enum.Parse(typeof(RuleType), pair.Key); var resultsPerType = GetResultsPerType(validationCompletedEventArgs, ruleType); items.Add(ruleType, resultsPerType); Collect(resultsPerType, ruleType); } validationCompletedEventArgs.Handled = CriticalErrorsNotExist(items); } }