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

            dispatcherTimerCash.Stop();


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

            dispatcherTimerCash.Stop();

            result = StationSettings.CheckBillValidator();
            if (result == true)
            {
                IsCashAcceptorFound = DeviceStatus.STATUS_OK;
                CashAcceptorStatus  = "Cash Acceptor\r\n Status: OK";
            }
            else
            {
                IsCashAcceptorFound = DeviceStatus.STATUS_NOK;
                CashAcceptorStatus  = "Cash Acceptor\r\n Status: Not Found!";
            }
        }