public void StartAnyline() { if (isScanning) { return; } //send the result view to the back before we start scanning View.SendSubviewToBack(resultView); error = null; success = scanView.StartScanningAndReturnError(out error); if (!success) { (alert = new UIAlertView("Error", error.DebugDescription, null, "OK", null)).Show(); } else { isScanning = true; } }
public void StartAnyline() { if (_isScanning) { return; } //send the result view to the back before we start scanning View.SendSubviewToBack(_resultView); _error = null; _success = _scanView.StartScanningAndReturnError(out _error); if (!_success) { (Alert = new UIAlertView("Error", _error.DebugDescription, (IUIAlertViewDelegate)null, "OK", null)).Show(); } else { _isScanning = true; } }