Esempio n. 1
0
 private void _cardReader_ReaderCardStateChanged(object sender, ReaderCardStateChangedEventArgs e)
 {
     if (e.ReaderCardState == ReaderCardState.CARD_PRESENT)
     {
         _form.MembershipId = _cardReader.GetCardBlockValue(1);
     }
 }
Esempio n. 2
0
        protected virtual void OnReaderCardStateChanged(ReaderCardStateChangedEventArgs e)
        {
            _readerCardState = e.ReaderCardState;

            var handler = ReaderCardStateChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected virtual void OnReaderCardStateChanged(ReaderCardStateChangedEventArgs e)
        {
            _readerCardState = e.ReaderCardState;

            var handler = ReaderCardStateChanged;
            if (handler != null) handler(this, e);
        }