Esempio n. 1
0
 public void OnSelection(MusicItem item)
 {
     if (item != null)
     {
         if (item.IsDir)
         {
             var dict = new Dictionary <string, string>()
             {
                 { "folder", item.Id }
             };
             PageNavigationService.Instance.NavigateWithQuery(typeof(MainPage), dict);
         }
         else
         {
             Debug.WriteLine($"Selected {item.Name}");
         }
     }
 }
Esempio n. 2
0
 public static void SetDownloadStatus(MusicItem track, ulong bytesReceived)
 {
     track.IsDownloading = bytesReceived < (ulong)track.Size;
     track.BytesReceived = bytesReceived;
 }