Inheritance: UIImagePickerController
        private void ScanClicked(object sender, EventArgs e)
        {
            try {
                if (CameraPicker == null)
                {
                    CameraPicker = new CameraViewController();
                }

                CameraPicker.BarCodeEvent += Handle_pickerBarCodeEvent;

                // start up
                CameraPicker.Initialize();
                this.PresentModalViewController(CameraPicker, true);
            } catch (Exception ex) {
                Console.WriteLine("Error in ScanClicked: {0}", ex.Message);

                AppDelegate.MainAppDelegate.ShowPopUp("Error", ex.Message.ToString(), 10, false, AppDelegate.MainAppDelegate.MainView);
            }
        }
Exemple #2
0
 public CameraOverLayView(CameraViewController parentController) : base()
 {
     Initialize();
     _parentViewController = parentController;
 }
 public CameraOverLayView(CameraViewController parentController)
     : base()
 {
     Initialize();
     _parentViewController = parentController;
 }