Example #1
0
 private void BTNescanear_Click(object sender, EventArgs e)
 {
     Capturador = new DPFP.Capture.Capture();
     Capturador.EventHandler = this;
     huella.Start(Capturador);
     BTNregistrar.Enabled = true;
 }
        public FingerPrinter()
        {
            InitializeComponent();
            this.UIStatus.Foreground = new SolidColorBrush(Colors.White);
            Enroller = new DPFP.Processing.Enrollment();
            try
            {
                Capturer = new DPFP.Capture.Capture(); 			// Create a capture operation.
                if (null != Capturer)
                    Capturer.EventHandler = this;					// Subscribe for capturing events.

            }
            catch
            {
                MessageBox.Show("Can't initiate capture operation!", "Error");
            }
        }
 public UILogin()
 {
     InitializeComponent();
     
     UIFinger_Printer.Foreground = new SolidColorBrush(Colors.White);
     Verificator = new DPFP.Verification.Verification();
     try
     {
         Capturer = new DPFP.Capture.Capture();				// Create a capture operation.
         if (null != Capturer)
             Capturer.EventHandler = this;					// Subscribe for capturing events.
        
     }
     catch
     {
        
     }
    
 }
Example #4
0
        protected virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;
                }
                else
                {
                    SetPrompt("Не удалось провести сканирование!");
                }
            }
            catch
            {
                SetPrompt("Не удалось провести сканирование!");
            }
        }
Example #5
0
        protected virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                                       // Subscribe for capturing events.
                }
                else
                {
                    SetPrompt("Can't initiate capture operation!");
                }
            }
            catch
            {
                MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #6
0
 protected virtual void Init()
 {
     try
     {
         Capturer    = new DPFP.Capture.Capture();
         Verificator = new DPFP.Verification.Verification();
         if (null != Capturer)
         {
             Capturer.EventHandler = this;
         }
         else
         {
             MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch
     {
         MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #7
0
        protected new virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                                       // Subscribe for capturing events.
                }
                else
                {
                    SetPrompt("Can't initiate capture operation!");
                }
            }
            catch
            {
                Debug.WriteLine("Can't initiate capture operation!");
            }
        }
        protected virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                                       // Subscribe for capturing events.
                }
                else
                {
                    SetPrompt("Não é possível iniciar a leitura!");
                }
            }
            catch
            {
                MessageBox.Show("Não e possível iniciar a leitura!", "Atenção", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        //se inicializa el componente
        protected virtual void Init(bool nuevo)
        {
            try
            {
                Capturer = new DPFP.Capture.Capture(DPFP.Capture.Priority.High);                                // Create a capture operation.

                if (null != Capturer)
                {
                    enrolado = false;
                    Capturer.EventHandler = this;                                       // Subscribe for capturing events.

                    Enroller = new DPFP.Processing.Enrollment();

                    if (nuevo)
                    {
                        SetStatus("Coloque su dedo en el lector para iniciar enrolamiento");
                    }
                    else
                    {
                        SetStatus("La huella procesada no es valida, repita el proceso de registro.");
                    }

                    Huella1.Image  = Properties.Resources.icon16Wait;
                    lbHuella1.Text = "Muestra 1 por capturar";
                    Huella2.Image  = Properties.Resources.icon16Wait;
                    lbHuella2.Text = "Muestra 2 por capturar";
                    Huella3.Image  = Properties.Resources.icon16Wait;
                    lbHuella3.Text = "Muestra 3 por capturar";
                    Huella4.Image  = Properties.Resources.icon16Wait;
                    lbHuella4.Text = "Muestra 4 por capturar";
                }
                else
                {
                    SetStatus("No se pudo inicializar la operacion de captura!");
                }
            }
            catch
            {
                SetStatus("No se pudo inicializar la operacion de captura!");
            }
        }
Example #10
0
File: Form1.cs Project: radtek/XYP
        protected virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();              // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this; // Subscribe for capturing events.
                }
                else
                {
                    writeStatusMessage("Хурууны хээний зураг авах боломжгүй байна.");
                }
            }
            catch
            {
                writeStatusMessage("Хурууны хээний зураг авах боломжгүй байна.");
                //MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #11
0
        public virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();              // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                   // Subscribe for capturing events.
                }
                else
                {
                    throw new Exception("");// SetPrompt("Can't initiate capture operation!");
                }
                CargarMedico(Usuario, "c:\\");
            }
            catch (Exception ex)
            {
                throw ex;  //MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #12
0
        // Inicializar proceso de captura
        private void InicializarCaptura()
        {
            try
            {
                Capturer         = new DPFP.Capture.Capture();                  // Crea la operacion de captura
                this.OnTemplate += CaptureForm_OnTemplate;

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                                       // Suscribe los eventos de captura.
                }
                else
                {
                    SetPrompt("Can't initiate capture operation!");
                }
            }
            catch
            {
                //MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        public UIUserEdit()
        {
            InitializeComponent();
            UIFinger_Printer.Foreground = new SolidColorBrush(Colors.Black);
            foreach(Code.User.UserTypeData type in App.TypeUsers)
            {
                UITypeUser.Items.Add(type);
            }
            Verificator = new DPFP.Verification.Verification();
            try
            {
                Capturer = new DPFP.Capture.Capture();				// Create a capture operation.
                if (null != Capturer)
                    Capturer.EventHandler = this;					// Subscribe for capturing events.

            }
            catch
            {

            }
        }
Example #14
0
        public virtual void FormInit()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                                       // Subscribe for capturing events.
                }
                else
                {
                    Utilerias.ControlNotificaciones(panelTag, lbMensaje, 3, "No es posible iniciar la Captura");
                }
                prgBar.Visible = false;
            }
            catch
            {
                //MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #15
0
 public bool Init()
 {
     try
     {
         Capturer = new DPFP.Capture.Capture();
         if (null != Capturer)
         {
             Capturer.EventHandler = this;
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         LogError.AddExcFileTxt(ex, "LectorHuella ~ Init");
         return(false);
     }
 }
Example #16
0
 public UIUserEdit()
 {
     InitializeComponent();
     UIFinger_Printer.Foreground = new SolidColorBrush(Colors.Black);
     foreach (Code.User.UserTypeData type in App.TypeUsers)
     {
         UITypeUser.Items.Add(type);
     }
     Verificator = new DPFP.Verification.Verification();
     try
     {
         Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.
         if (null != Capturer)
         {
             Capturer.EventHandler = this;                                       // Subscribe for capturing events.
         }
     }
     catch
     {
     }
 }
        protected virtual void Init()
        {
            try
            {
                Verificator = new DPFP.Verification.Verification();
                Capturer    = new DPFP.Capture.Capture();           // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                   // Subscribe for capturing events.
                }
                else
                {
                    SetPrompt("No se pudo iniciar la operación de captura");
                }
            }
            catch
            {
                MessageBox.Show("No se pudo iniciar la operación de captura", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #18
0
 public void Init_captura(DPFP.Capture.EventHandler handler)
 {
     try
     {
         capturador = new DPFP.Capture.Capture();
         if (capturador != null)
         {
             capturador.EventHandler = handler;
             //return "exito";
         }
         else
         {
             //return "no se pudo inicializar la captura";
             MessageBox.Show("no se pudo inicializar la captura", "Error", MessageBoxButtons.OK);
         }
     }
     catch
     {
         //return "Catch";
         MessageBox.Show("Catch", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #19
0
        protected virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;
                }
                else
                {
                    lblReporte.Content = "Can't initiate capture operation!";
                }
            }
            catch
            {
                MessageBox.Show("Can't initiate capture operation!", "Error", System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Error);
            }

            Verificator = new DPFP.Verification.Verification();
        }
Example #20
0
        protected virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();
                Enroller = new DPFP.Processing.Enrollment();
                this.TotalFeaturesNeeded = Enroller.FeaturesNeeded;

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;
                }
                else
                {
                    MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            catch
            {
                MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #21
0
        protected void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;                  // Subscribe for capturing events.
                }
                else
                {
                    //SetPrompt("Can't initiate capture operation!");
                }
            }
            catch
            {
                MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            Enroller = new DPFP.Processing.Enrollment();            // Create an enrollment.
            UpdateStatus();
        }
Example #22
0
        protected virtual void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();                          // Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this; // Subscribe for capturing events.
                }
                else
                {
                    this.BeginInvoke((Action)(() =>
                    {
                        MessageBox.Show("Could not initiate fingerprint capture operation! \n" +
                                        "Check if the device is pluggedin or the driver has been installed");
                    }));
                }
            }
            catch
            {
                MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 protected virtual void Init()
 {
     fpStatusLbl.Text = "Initializing biometric scanner";
     try
     {
         Capturer    = new DPFP.Capture.Capture();
         Verificator = new DPFP.Verification.Verification();// Create a capture operation.
         if (null != Capturer)
         {
             Capturer.EventHandler = this;
             fpStatusLbl.Text      = "biometric initiated";
             Capturer.StartCapture();
             rptLbl.Text = "Scan your fingerprint.";
         }
         else
         {
             fpStatusLbl.Text = "Error!";
         }
     }
     catch
     {
         MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #24
0
        private void btnLeerHuella_Click(object sender, EventArgs e)
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();				// Create a capture operation.

                if (null != Capturer)
                {
                    Capturer.EventHandler = this;
                    //Enroller = new DPFP.Processing.Enrollment();
                    if (null != Capturer)
                    {
                        try
                        {
                            Capturer.StartCapture();
                            SetStatus("Ponga su dedo indice en el huellero");
                        }
                        catch
                        {
                            MakeReport("No se pudo iniciar la captura!");
                        }
                    }
                }
                else
                {
                    MakeReport("No se pudo iniciar la operación de captura!");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Validador Huella", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 protected void Init()
 {
     Capturer = new DPFP.Capture.Capture();                  // Create a capture operation.
     Capturer.EventHandler = this;                           // Subscribe for capturing events.
 }
 private void btnHuella_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Coloca el dedo sobre el Scanner...", "Atencion", MessageBoxButtons.OK, MessageBoxIcon.Information);
     Capturador = new DPFP.Capture.Capture();
     Capturador.EventHandler = this;
     huella.Start(Capturador);
 }
        protected void Init()
        {
            try
            {
                Capturer = new DPFP.Capture.Capture();				// Create a capture operation.

                if (null != Capturer)
                    Capturer.EventHandler = this;					// Subscribe for capturing events.
            }
            catch
            {
                MessageBox.Show("Can't initiate capture operation!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 protected virtual void Init()
 {
     capteror = new DPFP.Capture.Capture();              // Create a capture operation.
     capteror.EventHandler = this;                       // Subscribe for capturing events.
     verifor = new DPFP.Verification.Verification();     // Create a fingerprint tamplete verifor
 }
 protected virtual void Init()
 {
     Capturer = new DPFP.Capture.Capture();                  // Create a capture operation.
     Capturer.EventHandler = this;                           // Subscribe for capturing events.
     Enroller = new DPFP.Processing.Enrollment();            // Create an enrollment.
 }
 private void BTNescanear_Click_1(object sender, EventArgs e)
 {
         Capturador = new DPFP.Capture.Capture();
         Capturador.EventHandler = this;
         huella.Start(Capturador);
 }