public void Delete(IStorageFolder entity)
        {
            //RemoveFromCurrentFolder(entity);

            List <IStorageFile> files = entity.Files;

            foreach (IStorageFile file in files)
            {
                _fileRepository.Delete((StorageFile)file);
            }

            List <IStorageFolder> folders = entity.Folders;

            foreach (IStorageFolder folder in folders)
            {
                _repository.Delete((StorageFolder)folder);
            }

            _repository.Delete((StorageFolder)entity);
        }
示例#2
0
 public void Delete(IStorageFile entity)
 {
     //remove from folder
     RemoveFromCurrentFolder(entity);
     _repository.Delete((StorageFile)entity);
 }