void BtnStopClick(object sender, EventArgs e) { btnStop.IsEnabled = false; btnStart.IsEnabled = true; btnPause.IsEnabled = false; StopRecordingDelegate stopRec = new StopRecordingDelegate(StopRecordingMethod); ////this.Invoke(stopRec, this.Cmdlet); //// this.Cmdlet.Paused = true; //// Global.GTranscript = false; //// System.Windows.Forms.MessageBox.Show("Stopped!"); ////this.Cmdlet.StopProcessing(); }