예제 #1
0
        public IEnumerable <string> GetImagesList()
        {
            if (imageGallery.Id == 0)
            {
                return(new string[0]);
            }

            string galleryFolderPath = imageGallery.GetGalleryUniquePath();

            if (string.IsNullOrWhiteSpace(galleryFolderPath))
            {
                return(new string[0]);
            }

            StorageFolder folderView = LocalStorageHelper.GetFolderView(galleryFolderPath, galleryFolderPath, false);

            return(!Guard.IsEmptyIEnumerable(folderView.files)
                ? folderView.files.Select(f => f.path)
                : new string[0]);
        }