private async void MainFormLoadAsync(object sender, EventArgs e) { _biometricClient = new NBiometricClient { BiometricTypes = NBiometricType.Face, UseDeviceManager = true, FacesCheckIcaoCompliance = true, FacesQualityThreshold = byte.Parse("0"), }; await _biometricClient.InitializeAsync(); if (!DesignMode) { try { nViewZoomSlider1.View = fvPreview; lblStatus.Text = string.Empty; _deviceManager = _biometricClient.DeviceManager; saveImageDialog.Filter = NImages.GetSaveFileFilterString(); UpdateCameraList(); } catch (Exception ex) { Utils.ShowException(ex); } } }
private async void MainForm_Load(object sender, EventArgs e) { if (_args.Count() > 0) { EstablecerParametros(); connStr = ObtenerConexion(_verificarHuellaInfo.Servicename); } else { MessageBox.Show("No se recibieron los parametros de busqueda"); } _biometricClient = new NBiometricClient { UseDeviceManager = true, BiometricTypes = NBiometricType.Face | NBiometricType.Finger | NBiometricType.Iris | NBiometricType.Voice, FacesCheckIcaoCompliance = false }; await _biometricClient.InitializeAsync(); Inicializar(); }