示例#1
0
 public PresentationSession(Presentation presentation, Slide[] slides)
 {
     this.presentation = presentation;
     Index             = 0;
     this.slides       = slides;
     currentSlide      = null;
 }
示例#2
0
        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);
        }