private ValidationSeverity DetermineSeverity() { var issueMax = Issues.Any() ? Issues.Max(i => i.Severity) : ValidationSeverity.None; var reportMax = SubReports.Any() ? SubReports.Max(i => i.Severity) : ValidationSeverity.None; return((ValidationSeverity)Math.Max((int)issueMax, (int)reportMax)); }
public int TotalPages() { int totalPages = 0; if (SubReports != null && SubReports.Any()) { SubReports.ForEach(r => totalPages = r.TotalPages() + Pages); } return(totalPages); }