Example #1
0
        void InitialiseShow()
        {
            // Load picture boxes for start of show
            iCurrentPosition = 0;
            iSlideShow.Reset();
            toolStripProgressBar.Minimum = 0;
            toolStripProgressBar.Maximum = iSlideShow.Count - 1;
            toolStripProgressBar.Value   = 0;
            LoadPictures();

            // Show how many pictures are currently in the slide show
            toolStripCountLabel.Text = string.Format("{0} pictures", iSlideShow.Count);

            // We have loaded just the pictures defined in the slideshow.
            // Check if there are any additional pictures in the folder.
            toolStripDropDownButton.Visible = (iSlideShow.GetUnincludedPictures().Count > 0);
        }