Esempio n. 1
0
        public void RemoveCardDevice()
        {
            CardDevice.OnPayment       -= CardDevice_OnStartPayment;
            CardDevice.OnStopPayment   -= CardDevice_OnStopPayment;
            CardDevice.OnReturnPayment -= CardDevice_OnReturnPayment;
            CardDevice.OnStopDevice    -= CardDevice_OnStopDevice;
            CardDevice.OnTest          -= CardDevice_OnTest;

            _cardDevice = null;
        }
Esempio n. 2
0
        public void AddCardDevice(ICardDeviceAdapter cardDevice)
        {
            CardDevice = cardDevice;

            CardDevice.OnPayment       += CardDevice_OnStartPayment;
            CardDevice.OnStopPayment   += CardDevice_OnStopPayment;
            CardDevice.OnReturnPayment += CardDevice_OnReturnPayment;
            CardDevice.OnStopDevice    += CardDevice_OnStopDevice;
            CardDevice.OnTest          += CardDevice_OnTest;
        }