private void listBox_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (!pl.IsInitialized()) { return; } pl.ChangeSong(playlistBox.SelectedIndex - 1); }
private void PlayBtn_Click(object sender, RoutedEventArgs e) { if (!pl.IsInitialized()) { return; } if (!thread.IsAlive) { thread.Start(); } else if (!pl.IsPlaying()) { pl.UnPause(); } else { pl.RestartSong(); progressTracker.Value = 0; } }