Ejemplo n.º 1
0
        /*
         * We'll stop scanning and if something goes wrong, we display it as an alert.
         */
        public void StopAnyline()
        {
            if (!isScanning)
            {
                return;
            }

            error   = null;
            success = anylineEnergyView.CancelScanningAndReturnError(out error);

            if (!success)
            {
                (alert = new UIAlertView("Error", error.DebugDescription, null, "OK", null)).Show();
            }
            else
            {
                isScanning = false;
            }
        }
        /*
         * We'll stop scanning and if something goes wrong, we display it as an alert.
         */
        public void StopAnyline()
        {
            if (!_isScanning)
            {
                return;
            }
            _isScanning = false;

            if (_anylineEnergyView == null)
            {
                return;
            }

            _error   = null;
            _success = _anylineEnergyView.CancelScanningAndReturnError(out _error);

            if (!_success)
            {
                (_alert = new UIAlertView("Error", _error.DebugDescription, (IUIAlertViewDelegate)null, "OK", null)).Show();
            }
        }