public EnterAcctNumberToFundTransferToState(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            this.acctNo       = acctNo;
            this.accountLimit = theCard.getAcctUsingAcctNo(acctNo);

            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila tekan " + maxAcctDigits + " nombor akaun anda";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Pilih semula akaun"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "OK"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请输入 " + maxAcctDigits + " 帐号";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "重新选择帐户"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "OK"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else //ENGLISH
            {
                bigDisplayLBL.Text   = "Please enter the " + maxAcctDigits + " digits account number";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Re-select account"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "OK"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }

            acctNoEntered = "";
        }
Ejemplo n.º 2
0
        public ViewBalanceState(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text = "Baki bagi akaun " + acctNo + "\n$" + string.Format("{0:0.00}", theCard.getAcctUsingAcctNo(acctNo).getBalance());
                left1BTN.Text      = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text     = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text = "账户余额 " + acctNo + "\n$" + string.Format("{0:0.00}", theCard.getAcctUsingAcctNo(acctNo).getBalance());
                left1BTN.Text      = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text     = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text = "Balance for account " + acctNo + "\n$" + string.Format("{0:0.00}", theCard.getAcctUsingAcctNo(acctNo).getBalance());
                left1BTN.Text      = "Back"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text     = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }
        }
        public CreditPaymentConfirmation(GUIforATM mainForm, string language, string acctNo, string cardNo, double payAmt) : base(mainForm, language)
        {
            this.acctNo = acctNo;
            this.cardNo = cardNo;
            this.payAmt = payAmt;

            payFromAcct = theCard.getAcctUsingAcctNo(acctNo);

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "DARI nombor akaun: " + acctNo + "\n KE nombor kad kredit: " + cardNo + "\n Jumlah Bayaran: $" + string.Format("{0:0.00}", payAmt);
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Tukar Jumlah"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "从帐户: " + acctNo + "\n 到信用卡: " + cardNo + "\n 支付的金额: $" + string.Format("{0:0.00}", payAmt);
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "编辑金额支付"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else //ENGLISH
            {
                bigDisplayLBL.Text   = "FROM Account No: " + acctNo + "\n TO Credit card no: " + cardNo + "\n Amount Paid: $" + string.Format("{0:0.00}", payAmt);
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Edit amount to pay"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }
        }
Ejemplo n.º 4
0
        public ShowNewBalance(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            Account depositToAcct;

            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            depositToAcct = theCard.getAcctUsingAcctNo(acctNo);

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Keseluruhan baki baru dalam " + acctNo + "\n$" + string.Format("{0:0.00}", depositToAcct.getBalance());
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = "Transaksi lain"; right4BTN.Text = "Tamat transaksi";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "此帐户中的新帐户余额 " + acctNo + "\n$" + string.Format("{0:0.00}", depositToAcct.getBalance());
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = "另一个交易"; right4BTN.Text = "终止交易";
            }
            else
            {
                bigDisplayLBL.Text   = "The new account balance " + acctNo + "\n$" + string.Format("{0:0.00}", depositToAcct.getBalance());
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = "Another Transaction"; right4BTN.Text = "Terminate Transaction";
            }
        }
        public ValidatePINState(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            if (language.ToUpper() == "CHINESE")
            {
                bigDisplayLBL.Text   = "请输入密码";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "语言"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "结束";
            }
            else if (language.ToUpper() == "MALAY")
            {
                bigDisplayLBL.Text   = "Sila tekan pin";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Bahasa"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Tamat";
            }
            else //ENGLISH
            {
                bigDisplayLBL.Text   = "Please enter PIN";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Language"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Exit";
            }

            PINentered = "";
        }
Ejemplo n.º 6
0
        public State(GUIforATM mainForm, string language)
        {
            this.mainForm = mainForm;

            left1BTN = (Button)mainForm.Controls["left1BTN"];
            left2BTN = (Button)mainForm.Controls["left2BTN"];
            left3BTN = (Button)mainForm.Controls["left3BTN"];
            left4BTN = (Button)mainForm.Controls["left4BTN"];

            right1BTN = (Button)mainForm.Controls["right1BTN"];
            right2BTN = (Button)mainForm.Controls["right2BTN"];
            right3BTN = (Button)mainForm.Controls["right3BTN"];
            right4BTN = (Button)mainForm.Controls["right4BTN"];

            bigDisplayLBL   = (Label)mainForm.Controls["bigDisplayLBL"];
            smallDisplayLBL = (Label)mainForm.Controls["smallDisplayLBL"];

            theCardReader    = mainForm.getCardReader();
            theCashDispenser = mainForm.getCashDispenser();

            this.language = language.ToUpper(); //default language

            theCard     = mainForm.getCard();
            theCashcard = mainForm.getCashcard();
        }
Ejemplo n.º 7
0
        public FundTransferConfirmation(GUIforATM mainForm, string language, string acctNo, string cardNo, double transferAmt) : base(mainForm, language)
        {
            this.acctNo      = acctNo;
            this.cardNo      = cardNo;
            this.transferAmt = transferAmt;

            transferFromAcct = theCard.getAcctUsingAcctNo(acctNo);

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Dari nombor akaun: " + acctNo + "\nKe nombor akaun: " + cardNo + "\nJumlah pemindahan: $" + string.Format("{0:0.00}", transferAmt);
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Tukar jumlah pemindahan"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "从帐户: " + acctNo + "\n到帐户: " + cardNo + "\n转账金额: $" + string.Format("{0:0.00}", transferAmt);
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "编辑转帐金额"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text   = "FROM Account No: " + acctNo + "\nTo account no: " + cardNo + "\nAmount Transfer: $" + string.Format("{0:0.00}", transferAmt);
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Edit amount to transfer"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }
        }
Ejemplo n.º 8
0
        public DisplayMainMenuState(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.ToUpper() == "CHINESE")
            {
                bigDisplayLBL.Text   = "请选择交易";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "检查存款余额"; left2BTN.Text = "花钱"; left3BTN.Text = "存款"; left4BTN.Text = "汇款";
                right1BTN.Text       = "银行信息"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "结束";
            }
            else if (language.ToUpper() == "MALAY")
            {
                bigDisplayLBL.Text   = "Sila pilih transaksi anda";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Periksa Baki"; left2BTN.Text = "Wang keluaran"; left3BTN.Text = "Deposit"; left4BTN.Text = "Pindah wang";
                right1BTN.Text       = "Khidmat Lain"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Tamat";
            }
            else //ENGLISH
            {
                bigDisplayLBL.Text   = "Please select your transaction";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Balance Enquiry"; left2BTN.Text = "Withdraw"; left3BTN.Text = "Deposit"; left4BTN.Text = "Fund Transfer";
                right1BTN.Text       = "More Services"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Exit";
            }
        }
        public EnterCreditCardNumberState(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            this.acctNo       = acctNo;
            this.accountLimit = theCard.getAcctUsingAcctNo(acctNo);

            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila tekan " + maxCreditDigits + " butang nombor Kad Kredit anda";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Pilih semula akaun"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "OK"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请输入你的 " + maxCreditDigits + " 信用卡号";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "重新选择帐户"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "OK"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text   = "Pleases enter the " + maxCreditDigits + " digits credit card number";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Re-select account"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "OK"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }

            creditNoEntered = "";
        }
Ejemplo n.º 10
0
        public MoreServices(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Khidmat lain";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Bayar Kad Kredit"; left2BTN.Text = "Tukar PIN"; left3BTN.Text = "Tambah nilai kad tunai"; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "More service";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "支付信用卡"; left2BTN.Text = "更改您的PIN码"; left3BTN.Text = "为您的现金卡添加价值"; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text   = "More service";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = "Pay Credit card"; left2BTN.Text = "Change PIN"; left3BTN.Text = "Top Up Cash Card"; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }
        }
Ejemplo n.º 11
0
        public EnterNewPin(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();


            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila tekan " + noDigitsForPIN + " butang PIN nombor yang baru";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "Padam"; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请输入你的 " + noDigitsForPIN + " 新PIN的按钮";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "抹去"; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text   = "Please enter your new " + noDigitsForPIN + " digits PIN number";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "Clear"; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }

            PINentered = "";
            PIN_One    = "";
            PIN_Two    = "";
        }
Ejemplo n.º 12
0
        Cash selectedCash = CashSelectorState.cash; //Null

        public DepositState(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            this.acctNo = acctNo;

            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text = "Sila masukkan wang tunai";
                left1BTN.Text      = "Re-select Account"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text     = "Ok"; right2BTN.Text = "Padam"; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text = "请把现金存入存款";
                left1BTN.Text      = "Re-select Account"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text     = "Ok"; right2BTN.Text = "抹去"; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else //ENGLISH
            {
                bigDisplayLBL.Text = "Please insert cash to deposit";
                left1BTN.Text      = "Re-select Account"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text     = "Ok"; right2BTN.Text = "Clear"; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }



            depositSum = 0;
        }
Ejemplo n.º 13
0
        public CashCardTopUpConfirmation(GUIforATM mainForm, string language, string acctNo, double topupAmt, bool isCardRemoved, bool isCashcardInsert) : base(mainForm, language)
        {
            this.acctNo           = acctNo;
            this.topupAmt         = topupAmt;
            this.isCardRemoved    = isCardRemoved;
            this.isCashcardInsert = isCashcardInsert;

            if (language.Equals("MALAY"))
            {
                if (isCashcardInsert)
                {
                    bigDisplayLBL.Text   = "Tambah Nilai $" + string.Format("{0:0.00}", topupAmt) + " dari akaun " + acctNo + " ke dalam Kad Tunai";
                    smallDisplayLBL.Text = "";
                    left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                    right1BTN.Text       = "Setuju"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Tamat";
                }
                else
                {
                    bigDisplayLBL.Text   = "KEROSAKKAN pada ATM\nAMARAN: Tiada Kad Tunai yang dimasukkan";
                    smallDisplayLBL.Text = "";
                    left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                    right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Tamat";
                }
            }
            else if (language.Equals("CHINESE"))
            {
                if (isCashcardInsert)
                {
                    bigDisplayLBL.Text   = "充值 $" + string.Format("{0:0.00}", topupAmt) + " 从帐户 " + acctNo + " 到你的CashCard";
                    smallDisplayLBL.Text = "";
                    left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                    right1BTN.Text       = "确认"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "终止";
                }
                else
                {
                    bigDisplayLBL.Text   = "ATM错误\n错误: 没有插入卡";
                    smallDisplayLBL.Text = "";
                    left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                    right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "终止";
                }
            }
            else //ENGLISH
            {
                if (isCashcardInsert)
                {
                    bigDisplayLBL.Text   = "Top Up $" + string.Format("{0:0.00}", topupAmt) + " from account " + acctNo + " to your cashcard";
                    smallDisplayLBL.Text = "";
                    left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                    right1BTN.Text       = "Confirm"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Terminate";
                }
                else
                {
                    bigDisplayLBL.Text   = "ERROR with ATM\nERROR: No Cashcard inserted";
                    smallDisplayLBL.Text = "";
                    left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                    right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Terminate";
                }
            }
        }
Ejemplo n.º 14
0
        public WaitForBankCardState(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            bigDisplayLBL.Text   = "Welcome to Ocean Bank \n欢迎来到 Ocean bank \nSelamat datang ke Ocean bank";
            smallDisplayLBL.Text = "";

            left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
            right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
        }
        public EnterAmtToFundTransfer(GUIforATM mainForm, string language, string acctNo, string cardNo) : base(mainForm, language)
        {
            this.acctNo  = acctNo;
            this.cardNo  = cardNo;
            this.account = theCard.getAcctUsingAcctNo(acctNo);

            maxAcctTransferLimit = 1000;

            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            //Get and set datetime properties
            DateTime start = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0);
            DateTime end   = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
            DateTime now   = DateTime.Now;

            if (now > start && now < end)
            {
                //smallDisplayLBL.Text = "Current time:" + now + " Time within range";
            }
            else
            {
                //smallDisplayLBL.Text = "Current time:" + now + " Time out of range";
                account.resetFundTransferLimit();
            }

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila tekan jumlah untuk dipindahkan dari " + this.acctNo + "\nke " + this.cardNo;
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "Tukar nombor akaun"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请输入转账金额从 " + this.acctNo + "\n至 " + this.cardNo;
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "修改帐户"; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text   = "Please enter amount to transfer from " + this.acctNo + "\nto " + this.cardNo;
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "Edit Account No."; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }


            amountEnteredTxt = "";

            //$$ amount display
            amtLength = "";
            ch        = smallDisplayLBL.Text.ToCharArray();
        }
 public RemoveCardState(GUIforATM mainForm, string language, string msg = null) : base(mainForm, language)
 {
     if (string.IsNullOrEmpty(msg) == true)
     {
         //End session
         if (language.ToUpper() == "CHINESE")
         {
             bigDisplayLBL.Text = "会议结束,没有活动";
         }
         else if (language.ToUpper() == "MALAY")
         {
             bigDisplayLBL.Text = "Sesi telah berakhir kerana tiada aktiviti";
         }
         else
         {
             bigDisplayLBL.Text = "Session end due to inactivity";
         }
         left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
         right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
         theCardReader.ejectCard();
     }
     else
     {
         if (language.ToUpper() == "CHINESE")
         {
             bigDisplayLBL.Text   = "感谢您使用OceanBank\n请取回银行卡";
             smallDisplayLBL.Text = "";
             theCardReader.ejectCard();
             left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
             right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
         }
         else if (language.ToUpper() == "MALAY")
         {
             bigDisplayLBL.Text   = "Terima kasih kerana menggunakan OceanBank\nSila keluarkan kad anda";
             smallDisplayLBL.Text = "";
             theCardReader.ejectCard();
             left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
             right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
         }
         else //ENGLISH
         {
             bigDisplayLBL.Text   = "Thank you for using OceanBank\nPlease remove card";
             smallDisplayLBL.Text = "";
             theCardReader.ejectCard();
             left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
             right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
         }
     }
 }
Ejemplo n.º 17
0
        public EnterAmtToTopUpCashCard(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            this.acctNo = acctNo;

            bigDisplayLBL.Text   = "Please enter amount to top-up";
            smallDisplayLBL.Text = "00.00";
            left1BTN.Text        = "Edit Account No."; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
            right1BTN.Text       = "Ok"; right2BTN.Text = "Clear"; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";

            amountEnteredTxt = "";

            //$$ amount display
            amtLength = "";
            ch        = smallDisplayLBL.Text.ToCharArray();
        }
 public LanguageSelectionState(GUIforATM mainForm, string language) : base(mainForm, language)
 {
     //if (language.ToUpper() == "CHINESE")
     //{
     //    bigDisplayLBL.Text = "请输入密码";
     //    smallDisplayLBL.Text = "";
     //    left1BTN.Text = "English"; left2BTN.Text = "中文"; left3BTN.Text = ""; left4BTN.Text = "";
     //    right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
     //}
     //else //ENGLISH
     //{
     bigDisplayLBL.Text   = "Please select your language \n请选择您的语言 \nSila pilih bahasa anda";
     smallDisplayLBL.Text = "";
     left1BTN.Text        = "English"; left2BTN.Text = "Malay"; left3BTN.Text = "Chinese"; left4BTN.Text = "";
     right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
     //}
 }
        public ChooseAcctToDepositState(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila pilih akaun untuk dimasukkan wang";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请选择帐户存款";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else //ENGLISH
            {
                bigDisplayLBL.Text   = "Please select an account to deposit";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }


            if (theCard.getNumAccounts() >= 1)
            {
                left1BTN.Text = theCard.getAcctAtIndex(0).getAcctNo();
            }

            if (theCard.getNumAccounts() >= 2)
            {
                left2BTN.Text = theCard.getAcctAtIndex(1).getAcctNo();
            }

            if (theCard.getNumAccounts() == 3)  // Max 3 accounts per Card only
            {
                left3BTN.Text = theCard.getAcctAtIndex(2).getAcctNo();
            }
        }
Ejemplo n.º 20
0
        public ChooseAcctToViewBalanceState(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila pilih akaun untuk lihat baki akaun anda";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请选择一个帐户来查看余额";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text   = "Please select account to view balance";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }

            if (theCard.getNumAccounts() >= 1)
            {
                left1BTN.Text = theCard.getAcctAtIndex(0).getAcctNo();
            }

            if (theCard.getNumAccounts() >= 2)
            {
                left2BTN.Text = theCard.getAcctAtIndex(1).getAcctNo();
            }

            if (theCard.getNumAccounts() == 3)  // Max 3 accounts per Card only
            {
                left3BTN.Text = theCard.getAcctAtIndex(2).getAcctNo();
            }
        }
        public TakeCashState(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            if (language.Equals("MALAY"))
            {
                Account withdrawFromAcct;

                withdrawFromAcct = theCard.getAcctUsingAcctNo(acctNo);

                bigDisplayLBL.Text   = "Baki yang tinggal " + acctNo + "\n$" + string.Format("{0:0.00}", withdrawFromAcct.getBalance()) + "\nSila ambil tunai anda";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";

                theCashDispenser.ejectCash();
            }
            else if (language.Equals("CHINESE"))
            {
                Account withdrawFromAcct;

                withdrawFromAcct = theCard.getAcctUsingAcctNo(acctNo);

                bigDisplayLBL.Text   = "剩余的余额 " + acctNo + "\n$" + string.Format("{0:0.00}", withdrawFromAcct.getBalance()) + "\n请拿你的现金";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";

                theCashDispenser.ejectCash();
            }
            else
            {
                Account withdrawFromAcct;

                withdrawFromAcct = theCard.getAcctUsingAcctNo(acctNo);

                bigDisplayLBL.Text   = "Remaining balance in " + acctNo + "\n$" + string.Format("{0:0.00}", withdrawFromAcct.getBalance()) + "\nPlease take your cash";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";

                theCashDispenser.ejectCash();
            }
        }
Ejemplo n.º 22
0
        public WaitForCashcardState(GUIforATM mainForm, string language, string acctNo, double topupAmt) : base(mainForm, language)
        {
            this.acctNo   = acctNo;
            this.topupAmt = topupAmt;

            //TIMER
            aTimer                     = new System.Timers.Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila masukkan Kad Tunai anda";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Tamatkan";

                theCardReader.ejectCard();
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请插入现金卡";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "终止";

                theCardReader.ejectCard();
            }
            else //for ENGLISH
            {
                bigDisplayLBL.Text   = "Please insert your cashcard";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Terminate";

                theCardReader.ejectCard();
            }
        }
        public EnterAmtToTopupCashcardState(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            this.acctNo = acctNo;

            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Tekan jumlah bagi nilai tambah";
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "$20"; left2BTN.Text = "$50"; left3BTN.Text = "$100"; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "Padam"; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "输入金额充值";
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "$20"; left2BTN.Text = "$50"; left3BTN.Text = "$100"; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "抹去"; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            else
            {
                bigDisplayLBL.Text   = "Enter amount to Top up";
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "$20"; left2BTN.Text = "$50"; left3BTN.Text = "$100"; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "Clear"; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
            }

            amountEnteredTxt = "";

            //$$ amount display
            amtLength = "";
            ch        = smallDisplayLBL.Text.ToCharArray();
        }
        public ViewAboutInfoState(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text = "OceanBank adalah antara bank terbaik di Singapura,\nJB, serta Batam !";
                smallDisplayLBL.Text = "";
                left1BTN.Text = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";
            }
            else if (language.Equals("CHINESE"))
            {

            }
            else
            {
                bigDisplayLBL.Text = "OceanBank is the best bank in Singapore,\nJB, and some say Batam !";
                smallDisplayLBL.Text = "";
                left1BTN.Text = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
            }
            

        }
Ejemplo n.º 25
0
        public ValidateNRICorFINState(GUIforATM mainForm, string language) : base(mainForm, language)
        {
            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Sila tekan " + noDigitsForNRICorFIN + " nombor Kad Pengenalan anda";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "Padam"; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";

                NRICorFINentered = "";
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "请输入你的 " + noDigitsForNRICorFIN + " 身份证号码";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "抹去"; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";

                NRICorFINentered = "";
            }
            else
            {
                bigDisplayLBL.Text   = "Please enter your " + noDigitsForNRICorFIN + " numeric numbers of NRIC/FIN";
                smallDisplayLBL.Text = "";
                left1BTN.Text        = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text       = "Ok"; right2BTN.Text = "Clear"; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";

                NRICorFINentered = "";
            }
        }
        public RemoveCashCardState(GUIforATM mainForm, string language, string card) : base(mainForm, language)
        {
            if (card == "ATM")
            {
                theCardReader.ejectCard();
            }
            else if (card == "CASHCARD")
            {
                theCardReader.ejectCashcard();
            }

            if (language.ToUpper() == "CHINESE")
            {
                bigDisplayLBL.Text   = "感谢您使用OceanBank\n请取回银行卡";
                smallDisplayLBL.Text = "";
                //theCardReader.ejectCashcard();
                left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
            }
            else if (language.ToUpper() == "MALAY")
            {
                bigDisplayLBL.Text   = "Terima kasih kerana menggunakan OceanBank\nSila keluarkan kad anda";
                smallDisplayLBL.Text = "";
                //theCardReader.ejectCashcard();
                left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
            }
            else //ENGLISH
            {
                bigDisplayLBL.Text   = "Thank you for using OceanBank\nPlease remove card";
                smallDisplayLBL.Text = "";
                //theCardReader.ejectCashcard();
                left1BTN.Text  = ""; left2BTN.Text = ""; left3BTN.Text = ""; left4BTN.Text = "";
                right1BTN.Text = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "";
            }
        }
Ejemplo n.º 27
0
 public creditCard(GUIforATM mainForm, string language) : base(mainForm, language)
 {
     if (language.Equals("MALAY"))
     {
         bigDisplayLBL.Text   = "Khidmat Lain";
         smallDisplayLBL.Text = "";
         left1BTN.Text        = "Bayar Kad Kredit"; left2BTN.Text = "Tukar PIN"; left3BTN.Text = "Tambah nilai Kad Tunai"; left4BTN.Text = "";
         right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu";
     }
     else if (language.Equals("CHINESE"))
     {
         bigDisplayLBL.Text   = "更多的服务";
         smallDisplayLBL.Text = "";
         left1BTN.Text        = "支付信用卡"; left2BTN.Text = "更改您的PIN码"; left3BTN.Text = "充值现金卡"; left4BTN.Text = "";
         right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";
     }
     else //ENGLISH
     {
         bigDisplayLBL.Text   = "More service";
         smallDisplayLBL.Text = "";
         left1BTN.Text        = "Pay Credit card"; left2BTN.Text = "Change PIN"; left3BTN.Text = "Top Up Cash Card"; left4BTN.Text = "";
         right1BTN.Text       = ""; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";
     }
 }
Ejemplo n.º 28
0
        public EnterAmtToWithdrawState(GUIforATM mainForm, string language, string acctNo) : base(mainForm, language)
        {
            this.acctNo       = acctNo;
            this.accountLimit = theCard.getAcctUsingAcctNo(acctNo);

            aTimer                     = new Timer();
            aTimer.Elapsed            += new ElapsedEventHandler(OnElapsedEvent);
            aTimer.SynchronizingObject = mainForm;
            aTimer.Interval            = 1000;
            aTimer.Start();


            maxAccountLimit = 1000;

            //Get and set datetime properties
            DateTime start = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0);
            DateTime end   = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
            DateTime now   = DateTime.Now;

            if (now > start && now < end)
            {
                //smallDisplayLBL.Text = "Current time:" + now + " Time within range";
            }
            else
            {
                //smallDisplayLBL.Text = "Current time:" + now + " Time out of range";
                accountLimit.resetWithdrawalLimit();
            }

            if (language.Equals("MALAY"))
            {
                bigDisplayLBL.Text   = "Keluarkan wang tunai dari akaun " + acctNo + "\nTekan jumlah wang untuk dikeluarkan\n\nJumlah minimum $20";
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "$20"; left2BTN.Text = "$50"; left3BTN.Text = "$100"; left4BTN.Text = "$200";
                right1BTN.Text       = "Ok"; right2BTN.Text = "Padam"; right3BTN.Text = ""; right4BTN.Text = "Kembali ke Menu Utama";


                amountEnteredTxt = "";

                //$$ amount display
                amtLength = "";
                ch        = smallDisplayLBL.Text.ToCharArray();
            }
            else if (language.Equals("CHINESE"))
            {
                bigDisplayLBL.Text   = "退出帐户 " + acctNo + "\n输入金额退出\n\n最低金额20美元";
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "$20"; left2BTN.Text = "$50"; left3BTN.Text = "$100"; left4BTN.Text = "$200";
                right1BTN.Text       = "Ok"; right2BTN.Text = "抹去"; right3BTN.Text = ""; right4BTN.Text = "回到主菜单";


                amountEnteredTxt = "";

                //$$ amount display
                amtLength = "";
                ch        = smallDisplayLBL.Text.ToCharArray();
            }
            else
            {
                bigDisplayLBL.Text   = "Withdraw from Account " + acctNo + "\nEnter amount to withdraw\n\nMinimum amount of $20";
                smallDisplayLBL.Text = "00.00";
                left1BTN.Text        = "$20"; left2BTN.Text = "$50"; left3BTN.Text = "$100"; left4BTN.Text = "$200";
                right1BTN.Text       = "Ok"; right2BTN.Text = ""; right3BTN.Text = ""; right4BTN.Text = "Back to Main Menu";


                amountEnteredTxt = "";

                //$$ amount display
                amtLength = "";
                ch        = smallDisplayLBL.Text.ToCharArray();
            }
        }
 public TopUpCashCard(GUIforATM mainForm, string language, string acctNo, double amtTopup) : base(mainForm, language)
 {
     bigDisplayLBL.Text = "Cash card inserted, ready to Top Up";
 }