ZForge.Motion.Controls.CameraView.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
        public void Stop()
        {
            this.SetStatus(Motion.Core.CameraStatus.STARTED, false);
            this.SetStatus(Motion.Core.CameraStatus.STOPPED, true);
            this.Cursor = Cursors.WaitCursor;
            try
            {
                mCameraClass.PlugIns.ReleaseAll();
                CloseVideoSource();
                this.cameraWindow.Invalidate();
                OnCameraViewLog(new CameraViewLogEventArgs(ZForge.Controls.Logs.LogLevel.LOG_INFO, string.Format(Translator.Instance.T("关闭摄像头[{0}]."), this.CameraClass.Name), this));
            }
            catch (Exception)
            {
            }
            this.mHasFrame = false;
            this.UpdateUIWithFrame();
            this.Cursor = Cursors.Default;
        }