Ejemplo n.º 1
0
        private async void OnFolderSelected()
        {
            DebugMessages = string.Format("Folder selected |||||| {0}", SelectedFolder.DisplayName);

            try
            {
                var folderList = await new FileReaper(SelectedFolder.StorageFile).ReapFiles();

                var fileList = new List <FileModel>();

                foreach (var storageFile in folderList)
                {
                    var fileModel = new FileModel(storageFile);

                    await fileModel.FindCover();

                    fileList.Add(fileModel);
                }

                FoundFiles = new ObservableCollection <FileModel>(fileList);
            }
            catch (Exception ex)
            {
                WriteErrorMessage(ex);
            }
        }