Exemple #1
0
 private void ChangeImage(object args)
 {
     if (_imageFilesPath.MoveNext())
     {
         NewImageAvaliable?.Invoke(this, EventArgs.Empty);
     }
 }
Exemple #2
0
 protected void ChangeImage()
 {
     if (_imageFilesPath.MoveNext())
     {
         NewImageAvaliable?.Invoke(this, EventArgs.Empty);
     }
     else
     {
         // Reached the end of the images. Loop to beginning?
         if (_setting.LoopSlideshow)
         {
             _imageFilesPath.Reset();
             if (_imageFilesPath.MoveNext())
             {
                 NewImageAvaliable?.Invoke(this, EventArgs.Empty);
             }
         }
     }
 }
Exemple #3
0
 private void ChangeImage(object args)
 {
     if (_bitmapImages.MoveNext())
     {
         NewImageAvaliable?.Invoke(this, EventArgs.Empty);
     }
     else
     {
         // Reached the end of the images. Loop to beginning?
         if (_setting.LoopSlideshow)
         {
             _bitmapImages.Reset();
             if (_bitmapImages.MoveNext())
             {
                 NewImageAvaliable?.Invoke(this, EventArgs.Empty);
             }
         }
     }
 }
Exemple #4
0
 private void ReloadSettings(object sender, System.EventArgs e)
 {
     LoadImage();
     NewImageAvaliable?.Invoke(this, EventArgs.Empty);
 }