示例#1
0
        public void AddPath(StorageFolder folder)
        {
            DirectoryLoader directoryLoader = new DirectoryLoader(folder);

            directoryLoader.ProgressUpdated += ProgressUpdated;
            this.musicDirectories.Add(directoryLoader);
        }
示例#2
0
 public void AddPaths(IEnumerable <StorageFolder> folders)
 {
     this.musicDirectories.AddRange(folders.Select(stringPath =>
     {
         DirectoryLoader directoryLoader  = new DirectoryLoader(stringPath);
         directoryLoader.ProgressUpdated += ProgressUpdated;
         return(directoryLoader);
     }));
 }