private void ManualMethod_Success(object sender, AttendanceMethodEventArgs e)
 {
     if (EnableLogging)
     {
         log(new Log()
         {
             AttendanceMethod       = AttendanceMethod.ManualEmployeeIDEntry,
             AttendanceMethodResult = AttendanceMethodResult.Success,
             Picture           = EmguCVHelper.CaptureImage.ToBitmap(),
             Employee          = this.DetectedEmployee,
             EnteredEmployeeID = EnteredEmployeeID.ToString()
         });
     }
 }
 private void ManualMethod_Failure(object sender, AttendanceMethodEventArgs e)
 {
     showFailedMessage("ManualFailed");
     if (EnableLogging)
     {
         log(new Log()
         {
             AttendanceMethod       = AttendanceMethod.ManualEmployeeIDEntry,
             AttendanceMethodResult = AttendanceMethodResult.Failure,
             Picture           = ((Image <Bgr, byte>)e.Input).ToBitmap(),
             EnteredEmployeeID = EnteredEmployeeID.ToString()
         });
     }
 }