public ImageFrm() { InitializeComponent(); m_DelegateSetImage = new SetImageDelegate(this.SetImage); m_DelegateWriteResults = new WriteResultsDelegate(this.WriteResults); m_CaptureThreadFinished = new DelegateCaptureThreadFinished(this.CaptureFinished); m_MatchThreadFinished = new DelegateMatchThreadFinished(this.MatchFinished); m_CaptureWithPDFinished = new DelegateCaptureWithPDFinished(this.CaptureWithPDFinished); del = new LumiSDKWrapper.LumiAcqStatusCallbackDelegate(this.AcqStatusCallback); // Set PD Capture flag m_bPDCaptureInProcess = false; // Set Cancel Capture state m_bCancelCapture = false; try { // Open the scanner SDKBiometrics.OpenScanner(); // Get Current Timeout LumiSDKWrapper.LUMI_CONFIG config = new LumiSDKWrapper.LUMI_CONFIG(); SDKBiometrics.GetConfig(ref config); this.txtTriggerTimeout.Text = config.nTriggerTimeout.ToString(); } catch (Exception err) { MessageBox.Show(err.Message, "Error"); DisableControls(); return; } }
private void ChangeTimeout_Click(object sender, EventArgs e) { // NOTE: The trigger timeout will not be set on the device until a // command that directly interacts with the sensor is called. In the // case of this CSharp example, either the capture or match commands // will suffice. LumiSDKWrapper.LUMI_CONFIG config = new LumiSDKWrapper.LUMI_CONFIG(); SDKBiometrics.GetConfig(ref config); config.nTriggerTimeout = uint.Parse(this.txtTriggerTimeout.Text); SDKBiometrics.SetConfig(config); SDKBiometrics.GetConfig(ref config); this.txtTriggerTimeout.Text = config.nTriggerTimeout.ToString(); }