private void ActionDecrypt(SoundPanel sp)
        {
            Thread th = new Thread(new ThreadStart(() => { ThreadFunctionActionDecrypt(sp.GetFormatManager(), sp.GetDisplayName()); }));

            th.SetApartmentState(ApartmentState.STA);
            th.Start();
        }
 private void ActionPlay(SoundPanel sp)
 {
     StreamPlayer.Play(sp.GetFormatManager(), new PlotGraphsDelegate(DrawPlots), this);
     textBlockNowPlaying.Text = "Now playing: " + sp.GetDisplayName();
 }
        private void ActionSave(SoundPanel sp)
        {
            Thread th = new Thread(new ThreadStart(() => { ThreadFunctionActionSave(sp.GetFormatManager(), sp.GetDisplayName()); }));

            th.Start();
        }