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