Exemple #1
0
        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));
        }
Exemple #2
0
        public int TotalPages()
        {
            int totalPages = 0;

            if (SubReports != null && SubReports.Any())
            {
                SubReports.ForEach(r => totalPages = r.TotalPages() + Pages);
            }
            return(totalPages);
        }