Exemplo n.º 1
0
 void core_onStatus(object source, GriauleFingerprintLibrary.Events.StatusEventArgs se)
 {
     if (se.StatusEventType == GriauleFingerprintLibrary.Events.StatusEventType.SENSOR_PLUG)
     {
         core.StartCapture(source);
     }
     else
     {
         core.StopCapture(source);
     }
 }
Exemplo n.º 2
0
 void fingerPrint_onStatus(object source, GriauleFingerprintLibrary.Events.StatusEventArgs se)
 {
     if (se.StatusEventType == GriauleFingerprintLibrary.Events.StatusEventType.SENSOR_PLUG)
     {
         fingerprint.StartCapture(source.ToString());
     }
     else
     {
         fingerprint.StopCapture(source);
     }
 }
Exemplo n.º 3
0
 private void OnStatus(string sender, int e)
 {
     if (this.onStatus != null)
     {
         StatusEventType statusEventType = (e == 0x15) ? StatusEventType.SENSOR_PLUG : StatusEventType.SENSOR_UNPLUG;
         StatusEventArgs se = new StatusEventArgs(sender, statusEventType);
         this.onStatus(sender, se);
     }
 }
Exemplo n.º 4
0
 void griauleLibrary_onStatus(object source, StatusEventArgs se)
 {
     switch (se.StatusEventType)
       {
     case StatusEventType.SENSOR_PLUG:
       FingerprintSensors.Add(se.Source);
       OnSensorChanged(new SensorChangedEventArgs(se.Source, false));
       break;
     case StatusEventType.SENSOR_UNPLUG:
       FingerprintSensors.Remove(se.Source);
       OnSensorChanged(new SensorChangedEventArgs(se.Source, true));
       break;
       }
 }