private void startSlideShow() { MyPhotoList photoSlideShow = new MyPhotoList(); photoSlideShow.TaggedPhotos = LogicServices.GetPhotosTaggedIn().ToList(); foreach (Photo photo in photoSlideShow) { pictureBoxMyPicture.LoadAsync(photo.PictureNormalURL); Thread.Sleep(2500); } FetchTaggedPhotos(); }
private void fillPictureBoxTaggedPhotos() { TaggedPhotos = LogicServices.GetPhotosTaggedIn().ToList(); pictureBoxMyPicture.Invoke(new Action(() => pictureBoxMyPicture.LoadAsync(TaggedPhotos[TaggedPhotosIndex].PictureNormalURL))); }