Exemple #1
0
        void RecreateEnrollmentControl() //since I can't find a way to reset the control, I hv to do this
        {
            //first destroy it
            if (enrollmentControl != null)
            {
                this.Controls.Remove(enrollmentControl);
                enrollmentControl.OnEnroll -= EnrollmentControl_OnEnroll;
                enrollmentControl           = null;
            }

            //now recreate it
            if (enrollmentControl == null)
            {
                enrollmentControl                    = new DPFP.Gui.Enrollment.EnrollmentControl();
                enrollmentControl.Location           = new Point(camControl.Left, camControl.Bottom + 20);
                enrollmentControl.ReaderSerialNumber = serial;
                enrollmentControl.Size               = new Size(txtFirstname.Width, txtFirstname.Width);
                enrollmentControl.OnEnroll          += EnrollmentControl_OnEnroll;
                //enrollmentControl.OnComplete += EnrollmentControl_OnComplete;
                //enrollmentControl.OnSampleQuality += EnrollmentControl_OnSampleQuality;
                this.Controls.Add(enrollmentControl);
            }
        }
Exemple #2
0
 protected virtual void Init()
 {
     EventHandler = new DPFP.Gui.Enrollment.EnrollmentControl();             // Create a capture operation.
 }