Пример #1
0
 private async Task PlayRandomAlbum()
 {
     if (Albums.Count > 0)
     {
         var   rand     = new Random();
         int   chosen   = rand.Next(Albums.Count);
         var   albumkey = Albums[chosen].Key;
         Album album    = SongListStorage.GetPinnedFlavourForAlbum(albumkey);
         await album.Play();
     }
 }
Пример #2
0
 private async void AddAlbumToPlaylistButton_Click(object sender, RoutedEventArgs e)
 {
     string albumid = (string)((Button)sender).Tag;
     Album  album   = SongListStorage.GetPinnedFlavourForAlbum(albumid);
     await album.AddToPlaylist();
 }
Пример #3
0
 private async void playalbumButton_Click(object sender, RoutedEventArgs e)
 {
     string albumid = (string)((Button)sender).Tag;
     Album  album   = SongListStorage.GetPinnedFlavourForAlbum(albumid); //SongListStorage.AlbumDict[albumid];
     await album.Play();                                                 //mb 1
 }