Camera.CameraScreen.btnStartStop_Released C# (CSharp) 메소드

btnStartStop_Released() 개인적인 메소드

private btnStartStop_Released ( Component source ) : void
source Component
리턴 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;
        }