Created
July 23, 2012 06:41
-
-
Save sandrinodimattia/3162303 to your computer and use it in GitHub Desktop.
eID MW sample application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
BEID_ReaderSet readerSet = BEID_ReaderSet.instance(); | |
BEID_ReaderContext reader = readerSet.getReader(); | |
if (reader.isCardPresent()) | |
{ | |
BEID_EIDCard card = reader.getEIDCard(); | |
BEID_EId doc = card.getID(); | |
string firstname = doc.getFirstName(); | |
Console.WriteLine("Firstname: " + firstname); | |
string lastname = doc.getSurname(); | |
Console.WriteLine("Lastname: " + lastname); | |
string birthdate = doc.getDateOfBirth(); | |
Console.WriteLine("Birthdate: " + birthdate); | |
} | |
BEID_ReaderSet.releaseSDK(); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex); | |
} | |
Console.Read(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment