public PresentationSession(Presentation presentation, Slide[] slides) { this.presentation = presentation; Index = 0; this.slides = slides; currentSlide = null; }
public Step RequestNext() { if (Index >= presentation.SlidesCount) { return(null); } if (currentSlide == null) { currentSlide = slides[Index].CreateSession(); slides[Index].Show(); } var step = currentSlide.RequestNext(); if (step == null) { Index++; currentSlide = null; return(RequestNext()); } step.Show(); return(step); }