OnEnrollFinger

This event is triggered when a fingerprint is registered.

OnEnrollFinger (LONG EnrollNumber, LONG FingerIndex, LONG ActionResult, LONG TemplateLength)

[ReturnValue]

EnrollNumber: User ID of the fingerprint being registered
FingerIndex: Index of the current fingerprint
ActionResult: Operation result. Return 0 if the operation is successful, or return a value
greater than 0.
TemplateLength: Length of the fingerprint template

 

Ejemplo

C#

int iMachineNumber = 1; 
if (axCZKEM1.RegEvent(iMachineNumber, 65535))//Here you can register the realtime events that you want to be triggered(the parameters 65535 means registering all)
{
this.axCZKEM1.OnEnrollFinger += new zkemkeeper._IZKEMEvents_OnEnrollFingerEventHandler(axCZKEM1_OnEnrollFinger);
}

private void axCZKEM1_OnEnrollFinger(int iEnrollNumber,int iFingerIndex,int iActionResult,int iTemplateLength)
        {
            if (iActionResult == 0)
            {
                lbRTShow.Items.Add("RTEvent OnEnrollFiger Has been Triggered....");
                lbRTShow.Items.Add(".....UserID: " + iEnrollNumber + " Index: " + iFingerIndex.ToString() + " tmpLen: " + iTemplateLength.ToString());
            }
            else
            {
                lbRTShow.Items.Add("RTEvent OnEnrollFiger was Triggered by Error");
            }
        }

VB

Dim iMachineNumber As Integer 'the serial number of the device.After connecting the device ,this value will be changed.
If axCZKEM1.RegEvent(iMachineNumber, 65535) = True Then 'Here you can register the realtime events that you want to be triggered(the parameters 65535 means registering all)
ddHandler axCZKEM1.OnEnrollFinger, AddressOf AxCZKEM1_OnEnrollFinger
End If

Private Sub AxCZKEM1_OnEnrollFinger(ByVal iEnrollNumber As Integer, ByVal iFingerIndex As Integer, ByVal iActionResult As Integer, ByVal iTemplateLength As Integer)
        If iActionResult = 0 Then
            lbRTShow.Items.Add("RTEvent OnEnrollFiger Has been Triggered....")
            lbRTShow.Items.Add(".....UserID: " & iEnrollNumber & " Index: " & iFingerIndex.ToString() & " tmpLen: " + iTemplateLength.ToString())
        Else
            lbRTShow.Items.Add("RTEvent OnEnrollFiger was Triggered by Error")
        End If
    End Sub