public void AddPath(StorageFolder folder) { DirectoryLoader directoryLoader = new DirectoryLoader(folder); directoryLoader.ProgressUpdated += ProgressUpdated; this.musicDirectories.Add(directoryLoader); }
public void AddPaths(IEnumerable <StorageFolder> folders) { this.musicDirectories.AddRange(folders.Select(stringPath => { DirectoryLoader directoryLoader = new DirectoryLoader(stringPath); directoryLoader.ProgressUpdated += ProgressUpdated; return(directoryLoader); })); }