Exemplo n.º 1
0
 private void Play_Click(object sender, RoutedEventArgs e)
 {
     //
     if (!MediaPlayer.IsPlaying && BassTrackVM.TracksList.Count != 0 && MediaPlayer.ActiveStreamHandle == 0)
     {
         MediaPlayer.OpenFile((BassTrackVM.TracksList[TrackListView.currentTrackIndex]).TrackPath);
         MediaPlayer.Play();
         return;
     }
     //
     MediaPlayer.Play();
 }