Camera.CameraScreen.btnStartStop_Released C# (CSharp) Method

btnStartStop_Released() private method

private btnStartStop_Released ( Component source ) : void
source Component
return void
        void btnStartStop_Released(Component source)
        {
            if (!started)
            {
                CameraSystem.Instance.Start(CameraResolution.LOW, cType);
                btnStartStop.Text = "Stop Camera";
                cameraLabel.Size = new Vector2(640,480);
            }
            else
            {
                CameraSystem.Instance.Stop();
                btnStartStop.Text = "Start Camera";
            }
            started = !started;
        }