Exemplo n.º 1
0
        private async void GetFoldersAndPictures(StorageFolder folder)
        {
            StartUpProgressRing.IsActive = true;

            // Clear all the ObservableCollection
            PicturesFiles.Clear();
            PictureFolder.Clear();

            // Get Folders and Pictures
            Gf = new GetFolders(folder);
            Gp = new GetPictures(folder);
            await Task.Delay(500);

            ObservableCollection<Folder> Folders = Gf.Folders;
            ObservableCollection<Picture> Pictures = Gp.Pictures;


            // Pluck off meta data from pictures and folders
            PopulateFoldersList(Folders);
            PopulatePicturesList(Pictures);

            StartUpProgressRing.IsActive = false;
        }
Exemplo n.º 2
0
        private async void GetFoldersAndVideos(StorageFolder VideosLibrary, QueryOptions QueryOption)
        {
            StartUpProgressRing.IsActive = true;

            // Clear all the ObservableCollection
            VideoFiles.Clear();
            VideoFolder.Clear();

            QueryOption.FolderDepth = FolderDepth.Shallow;

            // Get Folders and Videos
            Gf = new GetFolders(VideosLibrary);
            Gv = new GetVideos(VideosLibrary, QueryOption);
            await Task.Delay(500);

            ObservableCollection<Folder> Folders = Gf.Folders;
            ObservableCollection<Video> Videos = Gv.Videos;

            // Pluck off meta data from pictures and folders
            PopulateFoldersList(Folders);
            PopulateVideoList(Videos);

            StartUpProgressRing.IsActive = false;
        }
Exemplo n.º 3
0
        private async void GetFoldersAndSongs(StorageFolder folder)
        {
            StartUpProgressRing.IsActive = true;

            // Clear all the ObservableCollection
            Songs.Clear();
            MusicFolder.Clear();
            allSongs.Clear();

            // Get Folders
            GetFolders Gf = new GetFolders(folder);
            await Task.Delay(500);
            var Folders = Gf.Folders;

            // Get Musics
            GetMusics(folder);
            await Task.Delay(500);

            // Pluck off meta data from file and folders
            PopulateFoldersList(Folders);
            await PopulateSongsList(allSongs);

            StartUpProgressRing.IsActive = false;
        }