private void InitCardReader() { iCard = new CardNative(); string[] readers = new string[0]; try { readers = iCard.ListReaders(); } catch (Exception) { if (iCard.LastError == 0x8010001D) { Status = "Smart card service not running."; return; } } if (readers.Length == 0) { Status = "No card readers found."; return; } reader = readers[0]; Status = reader; iCard.OnCardInserted += new CardInsertedEventHandler(iCard_OnCardInserted); iCard.OnCardRemoved += new CardRemovedEventHandler(iCard_OnCardRemoved); iCard.StartCardEvents(readers[0]); try { StartReadCard(); } catch (Exception e) { //System.Diagnostics.Debug.Assert(false, e.Message + " " + e.StackTrace); if (iCard.LastError == 0x80100069) { Status = "No card inserted."; } else { Status = e.Message; System.Diagnostics.Debug.Assert(false, e.Message + " " + iCard.LastError + " " + e.StackTrace); } //no card present, do nothing } }
public EMVCard(CardNative cardUpdater) { this.cardUpdater = cardUpdater; this.Properties = new List<object>(); }
public NETSCashCard(CardNative reader) { this.iCard = reader; this.TransactionLog = new List<NETSTransaction>(); }
public NETSCashCard(CardNative reader) { this.iCard = reader; this.TransactionLog = new List <NETSTransaction>(); }
public MyKad(CardNative reader) { this.cardUpdater = reader; }
/*public TouchNGoCard(byte[] paramArrayOfByte) { this.m_proxyAppletAID = paramArrayOfByte; }*/ public TouchNGoCard(CardNative reader) { this.cardUpdater = reader; }
public void setCardUpdater(CardNative paramCardUpdater) { this.cardUpdater = paramCardUpdater; }
private void InitCardReader() { iCard = new CardNative(); string[] readers = new string[0]; try { readers = iCard.ListReaders(); } catch (Exception) { if (iCard.LastError == 0x8010001D) { Status = "Smart card service not running."; return; } } if (readers.Length == 0) { Status = "No card readers found."; return; } reader = readers[0]; Status = reader; iCard.OnCardInserted += new CardInsertedEventHandler(iCard_OnCardInserted); iCard.OnCardRemoved += new CardRemovedEventHandler(iCard_OnCardRemoved); iCard.StartCardEvents(readers[0]); try { StartReadCard(); } catch (Exception e) { //System.Diagnostics.Debug.Assert(false, e.Message + " " + e.StackTrace); if (iCard.LastError == 0x80100069) Status = "No card inserted."; else { Status = e.Message; System.Diagnostics.Debug.Assert(false, e.Message + " "+ iCard.LastError+ " "+ e.StackTrace ); } //no card present, do nothing } }
public EMVCard(CardNative cardUpdater) { this.cardUpdater = cardUpdater; this.Properties = new List <object>(); }
/*public TouchNGoCard(byte[] paramArrayOfByte) * { * this.m_proxyAppletAID = paramArrayOfByte; * }*/ public TouchNGoCard(CardNative reader) { this.cardUpdater = reader; }