private void SetDataFingerButton(Label finger, Button btnFinger)
 {
     if (EmployeeID != -1)
     {
         int template_length = !string.IsNullOrEmpty(finger.Text) ? Convert.ToInt32(finger.Text) : -1;
         scanFinger = new ScanFinger(this, EmployeeID, Convert.ToInt32(btnFinger.Text) - 1, template_length);
         scanFinger.Show();
     }
     else
     {
         MessageBox.Show("Invalid Employee ID / Still Empty.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
 }
Exemplo n.º 2
0
 public Device(ScanFinger scanFinger)
 {
     this.scanFinger = scanFinger;
     init();
 }