Ejemplo n.º 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     Media = new MediaHandler(new string[] { Environment.GetFolderPath(Environment.SpecialFolder.MyMusic) });
     Task.Run(async() => {
         var needToAdd = await Media.LoadDatabase();
         if (needToAdd)
         {
             var list = await Media.DatabaseHelper.QueryAlbums();
             foreach (var a in list)
             {
                 DEBUG_AddLabel(a.Name);
             }
         }
     });
     Media.DatabaseHelper.ObjectAdded += DatabaseHelper_ObjectAdded;
 }
Ejemplo n.º 2
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     Debug.WriteLine("Hi!");
     MediaHandler fetcher = new MediaHandler(new string[] { Environment.GetFolderPath(Environment.SpecialFolder.MyMusic) });
 }