private static FingerprintUnitStatus GetFingerprintUnitStatusResult(Response response) { if (response.Command != PrimaryResponseCommand.LastCommand_Or_Fingerprint) { throw new InvalidDataException(string.Format("Expected response of {0} but received {1}.", PrimaryResponseCommand.LastCommand_Or_Fingerprint, response.Command)); } return(FingerprintUnitStatus.Parse(response.Data)); }
private static void DisplayStatus(FingerprintUnitStatus status) { Debug.WriteLine(""); Debug.WriteLine("Comparison Mode: {0}", status.ComparisonMode); Debug.WriteLine("Kernel Version: {0}", new object[] { status.KernelVersion }); Debug.WriteLine("Loaded Templates: {0}", status.LoadedTemplates); Debug.WriteLine("Maximum Templates: {0}", status.MaximumTemplates); Debug.WriteLine("FPU Mode: {0}", status.FingerprintUnitMode); Debug.WriteLine("Global Threshold: {0}", status.GlobalThreshold); Debug.WriteLine("Enroll Mode: {0}", status.EnrollMode); Debug.WriteLine(""); }