void HandleButtonClick() { ToggleBusy(true); if (OCRButton.TitleLabel.Text == "Take Picture") { using (var settings = AVCapturePhotoSettings.Create()) { ImageOutput.CapturePhoto(settings, Camera); } OCRButton.SetTitle("Retake Picture", UIControlState.Normal); } else { PictureView.Image = null; Capture = null; OCRButton.SetTitle("Take Picture", UIControlState.Normal); ToggleBusy(false); } }