void core_onStatus(object source, GriauleFingerprintLibrary.Events.StatusEventArgs se) { if (se.StatusEventType == GriauleFingerprintLibrary.Events.StatusEventType.SENSOR_PLUG) { core.StartCapture(source); } else { core.StopCapture(source); } }
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); } }
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); } }
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; } }