public IterableListEnumerator(IterableList <T> iterableList)
 {
     this.position     = -1;
     this.iterableList = iterableList;
 }
Ejemplo n.º 2
0
 public void SetPhotoSourceDir(DirectoryInfo di)
 {
     _PhotoSourceDir = di;
     var photos = new IterableList<FileInfo>();
     foreach (FileInfo f in _PhotoSourceDir.EnumerateFiles("*.*", SearchOption.AllDirectories))
     {
         if (f.Extension.ToUpper() == ".JPG" || f.Extension.ToUpper() == ".JPEG" || f.Extension.ToUpper() == ".PNG")
             photos.Add(f);
     }
     if (photos.Count > 0)
     {
         _Photos = photos;
         _Photos.MoveNext();
     }
     else
     {
         _view.Alert("No photos found");
         _PhotoSourceDir = null;
     }
     OnPropertyChanged("SortingMode", "SetupMode", "Photo", "Progress", "CopyDetails");
 }