Пример #1
0
 public void StartCapture(object sensor)
 {
     if (this.grFingerEventHandler == null)
     {
         this.grFingerEventHandler = new GrFingerEventHandler(this.OnFinger);
         this.gchFinger            = GCHandle.Alloc(this.grFingerEventHandler);
     }
     if (this.grImageEventHandler == null)
     {
         this.grImageEventHandler = new GrImageEventHandler(this.OnImage);
         this.gchImage            = GCHandle.Alloc(this.grImageEventHandler);
     }
     this.StartCapture(sensor.ToString(), this.grFingerEventHandler, this.grImageEventHandler);
 }
Пример #2
0
        private void StartCapture(string sensor, GrFingerEventHandler grFingerEventHandler, GrImageEventHandler grImageEventHandler)
        {
            int errorCode = 0;

            try
            {
                errorCode = GrFingerprintProxy.GrCapStartCapture(sensor, grFingerEventHandler, grImageEventHandler);
            }
            catch (AccessViolationException exception)
            {
                FingerprintException exception2 = new FingerprintException(-113, exception);
                throw exception2;
            }
            FingerprintException.CheckError(errorCode);
        }
Пример #3
0
 public static extern int GrCapStartCapture(string idSensor, GrFingerEventHandler fingerEventHandler, GrImageEventHandler imageEventHandler);
Пример #4
0
 private void StartCapture(string sensor, GrFingerEventHandler grFingerEventHandler, GrImageEventHandler grImageEventHandler)
 {
     int errorCode = 0;
     try
     {
         errorCode = GrFingerprintProxy.GrCapStartCapture(sensor, grFingerEventHandler, grImageEventHandler);
     }
     catch (AccessViolationException exception)
     {
         FingerprintException exception2 = new FingerprintException(-113, exception);
         throw exception2;
     }
     FingerprintException.CheckError(errorCode);
 }
Пример #5
0
 public void StartCapture(object sensor)
 {
     if (this.grFingerEventHandler == null)
     {
         this.grFingerEventHandler = new GrFingerEventHandler(this.OnFinger);
         this.gchFinger = GCHandle.Alloc(this.grFingerEventHandler);
     }
     if (this.grImageEventHandler == null)
     {
         this.grImageEventHandler = new GrImageEventHandler(this.OnImage);
         this.gchImage = GCHandle.Alloc(this.grImageEventHandler);
     }
     this.StartCapture(sensor.ToString(), this.grFingerEventHandler, this.grImageEventHandler);
 }
Пример #6
0
 public static extern int GrCapStartCapture(string idSensor, GrFingerEventHandler fingerEventHandler, GrImageEventHandler imageEventHandler);