public override State handleRight1BTNClick()
        {
            State nextStep = this;

            if (session)
            {
                if (language.Equals("MALAY"))
                {
                    if (acctNoEntered.Length == maxAcctDigits)
                    {
                        nextStep = new EnterAmtToFundTransfer(mainForm, language, this.acctNo, smallDisplayLBL.Text);
                    }
                    else
                    {
                        bigDisplayLBL.Text   = "Perlukan " + maxAcctDigits + " nombor akaun anda\nSila tekan semula";
                        acctNoEntered        = "";
                        smallDisplayLBL.Text = acctNoEntered;
                    }
                }
                else if (language.Equals("CHINESE"))
                {
                    if (acctNoEntered.Length == maxAcctDigits)
                    {
                        nextStep = new EnterAmtToFundTransfer(mainForm, language, this.acctNo, smallDisplayLBL.Text);
                    }
                    else
                    {
                        bigDisplayLBL.Text   = "需要 " + maxAcctDigits + " 帐号\n请再次输入";
                        acctNoEntered        = "";
                        smallDisplayLBL.Text = acctNoEntered;
                    }
                }
                else //ENGLISH
                {
                    if (acctNoEntered.Length == maxAcctDigits)
                    {
                        nextStep = new EnterAmtToFundTransfer(mainForm, language, this.acctNo, smallDisplayLBL.Text);
                    }
                    else
                    {
                        bigDisplayLBL.Text   = "Requires " + maxAcctDigits + " digits account number to be entered\nPease re-enter";
                        acctNoEntered        = "";
                        smallDisplayLBL.Text = acctNoEntered;
                    }
                }
            }
            theCardReader.ejectCard();

            return(nextStep);
        }
コード例 #2
0
        public override State handleLeft1BTNClick()
        {
            State nextStep = new EnterAmtToFundTransfer(mainForm, language, acctNo, cardNo);

            return(nextStep);
        }