예제 #1
0
파일: Program.cs 프로젝트: frozenesper/mad
 static void Main(string[] args)
 {
     var xml = File.ReadAllText(radioheadFileName);
     using (var ctx = new MediaContext(root))
     {
         var folder = ctx.FindAllSubFoldersAsync().Result;
     }
 }
예제 #2
0
 private async Task SearchForFolders()
 {
     var token = this.cancellationTokenSource.Token;
     using (var ctx = new MediaContext(this.Root))
     {
         var folder = await ctx.FindAllSubFoldersAsync();
         folder.Items.CollectionChanged += ArtistCollectionChanged;
     }
 }