private void OpenDevice() { try { if (_fingerPrint == null) { _fingerPrint = new FingerPrint(new byte[] { 0xff, 0xff, 0xff, 0xff }, new WinAppPackageManager(3)); } } catch (Exception ex) { MessageBox.Show(ex.Message, Resources.Form1_OpenDevice_Error, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void OpenDevice() { try { if (_fingerPrint == null) { _fingerPrint = new FingerPrint(new byte[] { 0xff, 0xff, 0xff, 0xff }, new WinIotPakcgeManager()); } } catch (Exception ex) { StatusText.Text = $"{ex.Message}"; } }
private void OnError(string message) { MessageBox.Show(message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); _fingerPrint = null; }