// 事件处理函数 public virtual void OnCardChange(CardData data) { if (CardChanged == null) { return; } CardEventArgsRegist arg = new CardEventArgsRegist(data); CardChanged(this, arg); }
//处理读卡事件 public void OnCardChanged(object sender, CardEventArgsRegist e) { try { CardData cardData = (CardData)e.Value; Invoke(new GetCardText(HandleCardChange), new object[] { cardData.ID,cardData.CardNo,cardData.CardType }); } catch (Exception ex) { } }