예제 #1
0
 private async void MusicSelectCommandExecute(Music obj)
 {
     if (obj != null)
     {
         await _playPart.Play(obj);
     }
 }
예제 #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()));
 }