Ejemplo n.º 1
0
        private void listBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (!pl.IsInitialized())
            {
                return;
            }

            pl.ChangeSong(playlistBox.SelectedIndex - 1);
        }
Ejemplo n.º 2
0
 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;
     }
 }