public void Dispose() { if (mqHandler != null) { mqHandler.Dispose(); mqHandler = null; } }
public FlagCarrierMini() { nfcHandler = new NfcHandler(); nfcHandler.CardAdded += NfcHandler_CardAdded; nfcHandler.StatusMessage += NfcHandler_StatusMessage; nfcHandler.ErrorMessage += NfcHandler_ErrorMessage; nfcHandler.ReceiveNdefMessage += NfcHandler_ReceiveNdefMessage; nfcHandler.CardHandlingDone += NfcHandler_CardHandlingDone; nfcHandler.NewTagUid += NfcHandler_NewTagUid; acrReader = nfcHandler.GetACRReader(); mqHandler = new MqHandler(); }