Exemple #1
0
        public PictureSource(FolderCollectionSet folderSet, SlideMode slideMode, int slideDelay)
        {
            this.folderSet = folderSet;
            this.slideMode = slideMode;

            timer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(slideDelay)
            };
            timer.Tick += changePictureEvent;
            Debug.Assert(!timer.IsEnabled);

            regeneratePictureList(folderSet.Default);
            applySlideMode();
        }
Exemple #2
0
 public TemporaryPictureSource(FolderCollectionSet folderSet, SlideMode slideMode, int delayTime)
     : this(new PictureSource(folderSet, slideMode, delayTime), slideMode, delayTime)
 {
 }