Пример #1
0
 private void OnConnect(object sender, EventArgs e)
 {
     Invoke(new Action(() =>
     {
         MessageBoxWrapper.Info("Fingerprint scanner connected");
     }));
 }
Пример #2
0
 private void OnDisconnect(object sender, EventArgs e)
 {
     Invoke(new Action(() =>
     {
         MessageBoxWrapper.Info("Fingerprint scanner disconnected");
         DialogResult = DialogResult.No;
         Close();
     }));
 }