예제 #1
0
        public void BarCodeScanned(Result result)
        {
            if (SurfaceView != null)
            {
                SurfaceView.StopWorker();
            }

            if (_imageView != null)
            {
                _imageView.RemoveFromSuperview();
            }

            //if(result!=null)
            //{
            BarCodeEventArgs    eventArgs = new BarCodeEventArgs(result);
            BarCodeEventHandler handler   = BarCodeEvent;

            if (handler != null)
            {
                // Invokes the delegates.
                handler(eventArgs);
                BarCodeEvent = null;
            }


            //}
        }
        public void BarCodeScanned(Result result)
        {
          	if (SurfaceView != null)
                SurfaceView.StopWorker();
			
			if(_imageView!=null)
			{
				_imageView.RemoveFromSuperview();
			}
			
			//if(result!=null)
			//{
					BarCodeEventArgs eventArgs = new BarCodeEventArgs(result);
					BarCodeEventHandler handler  = BarCodeEvent;
					if (handler != null)
					{
						// Invokes the delegates.
						handler(eventArgs);
						BarCodeEvent = null;
					}
				
		
			//}
			
		}