Exemplo n.º 1
0
        private void enrollment_OnCaptured(EnrollmentControl enrollmentControl, CaptureResult captureResult, int fingerPosition)
        {
            if (captureResult.ResultCode != Constants.ResultCode.DP_SUCCESS)
            {
                if (globales.dispositivo != null)
                {
                    globales.dispositivo.Dispose();
                    globales.dispositivo = null;
                }

                // Disconnect reader from enrollment control
                _enrollmentControl.Reader = null;

                MessageBox.Show("Error:  " + captureResult.ResultCode);
                //  btnCancel.Enabled = false;
            }
            else
            {
                if (captureResult.Data != null)
                {
                    foreach (Fid.Fiv fiv in captureResult.Data.Views)
                    {
                        imagenDedo.Image = CreateBitmap(fiv.RawImage, fiv.Width, fiv.Height);
                    }
                }
            }
        }
Exemplo n.º 2
0
 private void enrollment_OnEnroll(EnrollmentControl enrollmentControl, DataResult <Fmd> enrollmentResult, int fingerPosition)
 {
     if (enrollmentResult != null && enrollmentResult.Data != null)
     {
         Fmd    datos  = enrollmentResult.Data;
         string cadena = Fmd.SerializeXml(datos);
         enviar(cadena);
         this.Close();
     }
 }
Exemplo n.º 3
0
        public UclFingerEnroll(FingerEnrollData.AppData appData)
        {
            //_data = appData;
            InitializeComponent();
            //ExchangeData(true);		// Init data with default control values;
            //_data.OnChange += () => ExchangeData(false);	// Track data changes to keep the form synchronized

            _enrollmentControl = new EnrollmentControl();
            EventHooks();
        }
Exemplo n.º 4
0
        private void frmEnrollar_Load(object sender, EventArgs e)
        {
            _enrollmentControl                = new DPCtlUruNet.EnrollmentControl(globales.dispositivo, Constants.CapturePriority.DP_PRIORITY_COOPERATIVE);
            _enrollmentControl.BackColor      = SystemColors.Window;
            _enrollmentControl.Location       = new System.Drawing.Point(3, 3);
            _enrollmentControl.Name           = "ctlEnrollmentControl";
            _enrollmentControl.Size           = new System.Drawing.Size(482, 346);
            _enrollmentControl.TabIndex       = 0;
            _enrollmentControl.OnCancel      += new DPCtlUruNet.EnrollmentControl.CancelEnrollment(this.enrollment_OnCancel);
            _enrollmentControl.OnCaptured    += new DPCtlUruNet.EnrollmentControl.FingerprintCaptured(this.enrollment_OnCaptured);
            _enrollmentControl.OnDelete      += new DPCtlUruNet.EnrollmentControl.DeleteEnrollment(this.enrollment_OnDelete);
            _enrollmentControl.OnEnroll      += new DPCtlUruNet.EnrollmentControl.FinishEnrollment(this.enrollment_OnEnroll);
            _enrollmentControl.OnStartEnroll += new DPCtlUruNet.EnrollmentControl.StartEnrollment(this.enrollment_OnStartEnroll);


            panel1.Controls.Add(_enrollmentControl);
        }
Exemplo n.º 5
0
        private void btnEnrollFingers_Click(object sender, RoutedEventArgs e)
        {
            if (_readerSelection == null)
            {
                _readerSelection = new ReaderSelection();
                // _readerSelection.Sender = this;
                _readerSelection.Currentinstance = mobj;
            }

            _readerSelection.ShowDialog();;

            if (enrollmentControl == null)
            {
                enrollmentControl          = new EnrollmentControl();
                enrollmentControl.Scevent += savebiometriconformclose;
                // enrollmentControl.Sender = new MainObject(); // this;

                // mobj.CurrentReader = mobj.CurrentReader;
                enrollmentControl.Currentinstance = mobj; // this;
            }
            bio_altered = true;
            enrollmentControl.ShowDialog();
        }
Exemplo n.º 6
0
 private void enrollment_OnDelete(EnrollmentControl enrollmentControl, Constants.ResultCode result, int fingerPosition)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 7
0
 private void Enrollpage_OnCancel(EnrollmentControl enrollmentControl, Constants.ResultCode result, int fingerPosition)
 {
     SendMessage(ActionMessage.SendMessage, "Cancel");
 }
Exemplo n.º 8
0
 private void Enrollpage_OnCaptured(EnrollmentControl enrollmentControl, CaptureResult captureResult, int fingerPosition)
 {
     SendMessage(ActionMessage.SendMessage, "Capture");
 }
Exemplo n.º 9
0
 private void Enrollpage_OnEnroll(EnrollmentControl enrollmentControl, DataResult <Fmd> enrollmentResult, int fingerPosition)
 {
     SendMessage(ActionMessage.SendMessage, "Start 3");
 }