private void ChangeImage(object args) { if (_imageFilesPath.MoveNext()) { NewImageAvaliable?.Invoke(this, EventArgs.Empty); } }
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); } } } }
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); } } } }
private void ReloadSettings(object sender, System.EventArgs e) { LoadImage(); NewImageAvaliable?.Invoke(this, EventArgs.Empty); }