Beispiel #1
0
        private void buttonStop_Click(object sender, System.EventArgs e)
        {
            if (plm != null)
            {
                plm.Notification -= new EventHandler(plm_Notification);
                plm.Stop();
                plm = null;
            }
            this.progressBarLeft.Value  = 0;
            this.progressBarRight.Value = 0;

            if (enc != null)
            {
                enc.Stop();                  // finish encoding
                enc.Dispose();
                enc = null;
            }
            if (asio != null)
            {
                asio.RemoveMirror();
            }

            asio.Stop();
            this.buttonStart.Enabled = true;
        }