private bool recognizeEmployee() { ///[Recognizing employee using various methods] Guid l_id = faceRecognitionMethod.UpdateInput(EmguCVHelper.CaptureImage).Run(); if (l_id == Guid.Empty) { l_id = QRMethod.UpdateInput(EmguCVHelper.CaptureImage).Run(); } if (l_id == Guid.Empty) { l_id = ManualMethod.UpdateInput(EnteredEmployeeID).Run(); } if (l_id != Guid.Empty) { if (DetectedEmployee == null) { DetectedEmployee = retrieveEmployee(l_id); } } if ((EnteredEmployeeID != null) && (l_id == Guid.Empty || DetectedEmployee == null)) { DetectedEmployee = null; return(false); } else { return(true); } ///[Recognizing employee using various methods] }