Example #1
0
 private void ProcessSlides(Logger logger, IList <DataElement> data)
 {
     ReportProgress("Generating content...", 0, data.Count);
     SlideProcessor.ErrorsCount = 0;
     for (int slideIndex = 0; slideIndex < Document.Slides.Count; slideIndex++)
     {
         ReportProgress("Generating content...", slideIndex + 1, Document.Slides.Count);
         Document.Slides[slideIndex].FindDataElements(data);
         SlideProcessor.ProcessSlide(Document.Slides[slideIndex]);
         AddTiming(51, "Slide " + slideIndex + " processed");
     }
     ErrorsCount = SlideProcessor.ErrorsCount;
 }
Example #2
0
			public static void StartNew(Slide slide, SlideShow slideShow, Action completed)
			{
				var slideProcessor = new SlideProcessor(slide, slideShow, completed);
				slideProcessor.Begin();
			}