// Constructor with slide show public SlideShowEditor(SlideShow aSlideShow) : this() { iSlideShow = aSlideShow; iWorkingFolder = Path.GetDirectoryName(iSlideShow.GetFilePath()); // Load picture boxes for start of show iCurrentPosition = 0; iSlideShow.Reset(); toolStripProgressBar.Value = 0; InitialiseShow(); }
// Constructor for preloaded slide show public SlideViewerForm(SlideShow aSlideShow, SlideViewerParameters aSlideParameters) : this(aSlideParameters) { iSlideShow = aSlideShow; iWorkingFolder = Path.GetDirectoryName(iSlideShow.GetFilePath()); this.Text = iSlideShow.Title; // Transition slides on timer tick: make the first tick quick iEndOfShow = false; transitionTimer.Enabled = true; transitionTimer.Interval = 100; }