private static void OnCardInserted(object sender, MagneticCardEventArgs e) { Console.WriteLine("{0} {1}", e.MagneticCardEvent, e.MagneticCard); }
private static void OnCardRemoved(object sender, MagneticCardEventArgs e) { // for the WBM 5000 remove is not called till you actually remove the card from the device. when it is inserted it will pull in then pop back out. (in the driver there is the posibility to change how it operates to not return the card right away or eject it from the back ie take it from the person that entered it and drop it inside the kiosk/atm) Console.WriteLine("{0} {1}", e.MagneticCardEvent, e.MagneticCard); }