ZForge.Motion.Controls.CameraEditForm.btnCancel_Click C# (CSharp) Method

btnCancel_Click() private method

private btnCancel_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            if (this.cameraViewTest.IsRunning())
            {
                this.cameraViewTest.Stop();
            }
            this.Camera.PlugIns.ReleaseAll();
            this.Close();
        }