private void dispatcherTimerCoin_Tick(object sender, EventArgs e)
        {
            bool result = false;

            dispatcherTimerCoin.Stop();

            result = StationSettings.CheckCoinAcceptor();

            if (result == true)
            {
                IsCoinAcceptorFound = DeviceStatus.STATUS_OK;
                //CoinAcceptorStatus = "Coin Acceptor\r\n Status: OK";
                CoinAcceptorStatus = String.Format(
                    "{0}\r\n {1}",
                    TranslationProvider.Translate(MultistringTags.TERMINAL_VERIFICATION_COIN_ACCEPTOR),
                    TranslationProvider.Translate(MultistringTags.TERMINAL_VERIFICATION_STATUS_OK)
                    );
            }
            else
            {
                IsCoinAcceptorFound = DeviceStatus.STATUS_NOK;
                //CoinAcceptorStatus = "Coin Acceptor\r\n Status: Not Found!";
                CoinAcceptorStatus = String.Format(
                    "{0}\r\n {1}",
                    TranslationProvider.Translate(MultistringTags.TERMINAL_VERIFICATION_COIN_ACCEPTOR),
                    TranslationProvider.Translate(MultistringTags.TERMINAL_VERIFICATION_STATUS_NOT_FOUND)
                    );
            }
        }
Пример #2
0
        private void dispatcherTimerCoin_Tick(object sender, EventArgs e)
        {
            bool result = false;

            dispatcherTimerCoin.Stop();

            result = StationSettings.CheckCoinAcceptor();

            if (result == true)
            {
                IsCoinAcceptorFound = DeviceStatus.STATUS_OK;
                CoinAcceptorStatus  = "Coin Acceptor\r\n Status: OK";
            }
            else
            {
                IsCoinAcceptorFound = DeviceStatus.STATUS_NOK;
                CoinAcceptorStatus  = "Coin Acceptor\r\n Status: Not Found!";
            }
        }