public override State handleRight4BTNClick() { State nextStep = this; if (session) { nextStep = new RemoveCardState(mainForm, language); } else { theCardReader.ejectCard(); } return(nextStep); }
public override State handleRight4BTNClick() ///Terminate button { State nextStep = this; if (isCardRemoved == false && isCashcardInsert == false) // remove atm card { nextStep = new RemoveCardState(mainForm, language); } else if (isCardRemoved && isCashcardInsert == false) //remove atm card (card already removed) { nextStep = new WaitForBankCardState(mainForm, language); } else if (isCardRemoved && isCashcardInsert) //remove cashcard { nextStep = new RemoveCashCardState(mainForm, language, "CASHCARD"); } aTimer.Stop(); return(nextStep); }
public override State handleRight4BTNClick() { State nextStep = new RemoveCardState(mainForm, language); return(nextStep); }