Ejemplo n.º 1
0
 private async void MusicSelectCommandExecute(Music obj)
 {
     if (obj != null)
     {
         await _playPart.Play(obj);
     }
 }
Ejemplo n.º 2
0
 private async void PlayAllCommandExecute()
 {
     _playPart.MusicsListCollection.Clear();
     _playPart.Stop();
     if (HotMusics.Count == 0)
     {
         return;
     }
     await _playPart.MusicsListCollection.AddRangeAsync(HotMusics, async range => await _playPart.Play(range.First()));
 }