Esempio n. 1
0
        public Report(XElement xml)
        {
            Pages = new List <report>();
            //Get pages
            IEnumerable <XElement> pages = xml.Descendants("page");

            logger.Debug("ReportPages: {0}", pages.Count());
            var reportPages = new List <report>();

            foreach (XElement page in pages)
            {
                var Page = new report(page);
                Pages.Add(Page);
            }
        }
Esempio n. 2
0
 public Report(XElement xml)
 {
     Pages = new List<report>();
     //Get pages
     IEnumerable<XElement> pages = xml.Descendants("page");
     logger.Debug("ReportPages: {0}", pages.Count());
     var reportPages = new List<report>();
     foreach (XElement page in pages)
     {
         var Page = new report(page);
         Pages.Add(Page);
     }
 }