示例#1
0
 void PlayButton_Click(object sender, RoutedEventArgs e)
 {
     if (currentlyPlaying != null)
     {
         player.Play();
     }
     else if (playlist.SongList.Count > 0)
     {
         PlayerHelper.Play(playlist.SongList[0], this);
     }
 }
示例#2
0
 void ListBoxItem_MouseDoubleClick(object sender, RoutedEventArgs e)
 {
     PlayerHelper.Play(songList[listBox1.SelectedIndex], playerWindow);
 }