private void buttonStopPlayback_Click(object sender, RoutedEventArgs e)
 {
     StreamPlayer.Stop();
     textBlockNowPlaying.Text = "";
 }
 private void ActionPlay(SoundPanel sp)
 {
     StreamPlayer.Play(sp.GetFormatManager(), new PlotGraphsDelegate(DrawPlots), this);
     textBlockNowPlaying.Text = "Now playing: " + sp.GetDisplayName();
 }
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     StreamPlayer.Stop();
 }