Esempio n. 1
0
 //FUNCION PARA CANCELAR EL REGISTRO
 private void cancelarRegistroHuella()
 {
     lectorHuellas.CancelEnroll();
     txtBase64_1.Clear();
     imgHuellaCapturada.Image = null;
     lectorHuellas.OnCapture -= lectorHuellas_OnCapture;
 }
Esempio n. 2
0
 private void btnVerify_Click(object sender, EventArgs e)
 {
     if (ZkFprint.IsRegister)
     {
         ZkFprint.CancelEnroll();
     }
     ZkFprint.OnCapture += zkFprint_OnCapture;
     ZkFprint.BeginCapture();
     ShowHintInfo("Please give fingerprint sample.");
 }
Esempio n. 3
0
 private void btnVerify_Click(object sender, EventArgs e)
 {
     if (ZkFprint.IsRegister)
     {
         ZkFprint.CancelEnroll();
     }
     ZkFprint.OnCapture += zkFprint_OnCapture;
     ZkFprint.BeginCapture();
     ShowHintInfo("POR FAVOR DE UN EJEMPLO DE SU HUELLA DIGITAL");
 }
Esempio n. 4
0
 //FUNCION PARA CANCELAR EL REGISTRO
 private void cancelarRegistroHuella()
 {
     lectorHuellas.CancelEnroll();
     txtBase64_1.Clear();
     btnVerificar.Enabled      = false;
     imgHuellaCapturada.Image  = null;
     lectorHuellas.OnCapture  -= lectorHuellas_OnCapture;
     lectorHuellas.EnrollCount = 3;
     lectorHuellas.BeginEnroll();
 }
Esempio n. 5
0
        public void CancelarEnrolamiento()
        {
#if (!DEBUG || !DESACTIVAHUELLERO)
            ZKFPEng.CancelEnroll();
#endif
            enrolling = false;
        }
 private void button2_Click(object sender, RoutedEventArgs e)
 {
     ZKFPEngX1.CancelEnroll();
     ZKFPEngX1.EnrollCount = 3;
     ZKFPEngX1.BeginEnroll();
     ShowHintInfo("Begin Register");
 }
Esempio n. 7
0
        public static void BeginCapture()
        {
            if (!IsConnected)
            {
                return;
            }

            if (Control.IsRegister)
            {
                Control.CancelEnroll();
            }

            SetAutoIdentify(true);
            Control.BeginCapture();

            Status = RobotStatus.capture;
        }
Esempio n. 8
0
        private void zkFprint_OnEnroll(object sender, IZKFPEngXEvents_OnEnrollEvent e)
        {
            if (e.actionResult)
            {
                string template = zk_dispositivo.EncodeTemplate1(e.aTemplate);
                txtBase64_1.Text = template;
                mostrarNotificacion("Registro satisfactorio, puede verificar su huella.");
                btnVerificar.Enabled = true;
            }

            else
            {
                zk_dispositivo.EnrollIndex += 1;
                mostrarNotificacion("Error, por favor, registre la huella nuevaente.");
                zk_dispositivo.CancelEnroll();
                zk_dispositivo.EnrollCount = 3;
                zk_dispositivo.BeginEnroll();
            }
        }
Esempio n. 9
0
    public void RemoveFingerprintEvent(System.Windows.Forms.Control.ControlCollection Controls)
    {
        Controls.Remove(m_zkFprint);

        m_currentOnCapture       = null;
        m_currentOnImageReceived = null;
        m_currentOnFeatureInfo   = null;
        m_currentOnEnroll        = null;
        m_zkFprint.CancelCapture();
        m_zkFprint.CancelEnroll();
    }
Esempio n. 10
0
 private void btnTimeOut_Click(object sender, EventArgs e)
 {
     fpicture.Image = null;
     lblName.Text   = "";
     if (ZkFprint.IsRegister)
     {
         ZkFprint.CancelEnroll();
     }
     ZkFprint.OnCapture       += zkFprint_OnCapture;
     ZkFprint.OnImageReceived += zkFprint_OnImageReceived;
     ZkFprint.BeginCapture();
     ShowHintInfo("Please give fingerprint sample.");
 }
Esempio n. 11
0
        private void frmPantallaRegistroEmpleadosEmpresas_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (Program.iUsarLectorHuellas == 1)
            {
                Controls.Add(lectorHuellas);

                if (lectorHuellas.InitEngine() == 0)
                {
                    lectorHuellas.FPEngineVersion = "9";
                    lectorHuellas.EnrollCount     = 3;
                }

                lectorHuellas.CancelEnroll();
                lectorHuellas.EndEngine();
            }
        }
Esempio n. 12
0
 private void btnRegister_Click(object sender, EventArgs e)
 {
     if (txtName.Text != "")
     {
         fpicture.Image            = null;
         ZkFprint.OnImageReceived += zkFprint_OnImageReceived;
         ZkFprint.OnFeatureInfo   += zkFprint_OnFeatureInfo;
         ZkFprint.OnEnroll        += zkFprint_OnEnroll;
         ZkFprint.CancelEnroll();
         ZkFprint.EnrollCount = 3;
         ZkFprint.BeginEnroll();
         ShowHintInfo("Please give fingerprint sample.");
     }
     else
     {
         MessageBox.Show("Enter Name First!");
     }
 }
Esempio n. 13
0
        private void frmIniciarSesion_FormClosing(object sender, FormClosingEventArgs e)
        {
            try
            {
                if (Program.iUsarHuellasCajeros == 1)
                {
                    lectorHuellas.OnCapture -= lectorHuellas_OnCapture;
                    lectorHuellas.CancelEnroll();
                    lectorHuellas.EndEngine();
                }
            }

            catch (Exception ex)
            {
                catchMensaje = new VentanasMensajes.frmMensajeNuevoCatch();
                catchMensaje.lblMensaje.Text = ex.Message;
                catchMensaje.ShowDialog();
            }
        }
Esempio n. 14
0
        private void frmPantallaEspereAlmuerzos_FormClosing(object sender, FormClosingEventArgs e)
        {
            try
            {
                if ((Program.iUsarLectorHuellas == 1) && (Program.iUsarLectorPantallaEspere == 1))
                {
                    lectorHuellas.OnCapture -= lectorHuellas_OnCapture;
                    lectorHuellas.CancelEnroll();
                    lectorHuellas.EndEngine();
                }
            }

            catch (Exception ex)
            {
                catchMensaje = new VentanasMensajes.frmMensajeNuevoCatch();
                catchMensaje.lblMensaje.Text = ex.Message;
                catchMensaje.ShowDialog();
            }
        }
Esempio n. 15
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Controls.Add(ZkFprint);
            Hide();
            InitialAxZkfp();
            switch (Argument)
            {
            case "check_device":
                try
                {
                    if (ZkFprint.InitEngine() == 0)
                    {
                        writeResult("check_device", "true");
                    }
                    else
                    {
                        writeResult("check_device", "false");
                    }
                }
                catch (Exception err)
                {
                    writeResult("check_device", err.Message);
                }
                finally
                {
                    Application.Exit();
                }
                break;

            case "verify_1":
                if (ZkFprint.IsRegister)
                {
                    ZkFprint.CancelEnroll();
                }
                ZkFprint.OnCapture += zkFprint_OnCapture;
                ZkFprint.BeginCapture();
                break;

            case "verify_2":
                fetch_Finger(Sub_Argument);
                break;

            case "done":
                updateVoteStatus(Int32.Parse(Sub_Argument));
                Application.Exit();
                break;

            case "get_secret_key":
                string      json  = "";
                List <User> users = queryFingerTemplete();
                for (int i = 0; i < users.Count; i++)
                {
                    if (i == users.Count - 1)
                    {
                        json += users[i].secret;
                    }
                    else
                    {
                        json += users[i].secret + ",";
                    }
                }
                writeResult("secret_key", json);
                Application.Exit();
                break;
            }
        }
Esempio n. 16
0
 private void btnSalir_Click(object sender, EventArgs e)
 {
     zk_dispositivo.CancelEnroll();
     zk_dispositivo.OnCapture -= zkFprint_OnCapture;
     this.Close();
 }