Esempio n. 1
0
        public GUIforATM(Card c, Cashcard cC)
        {
            InitializeComponent();

            theCard     = c;
            theCashcard = cC;

            theCardReader = new CardReader(rightPicBox);
            theCardReader.withoutCard();
            theCashDispenser = new CashDispenser(leftPicBox);
            theCashDispenser.withoutCash();

            keysound = new SoundPlayer(Properties.Resources.keysound);
            keysound.Load();

            currentState = new WaitForBankCardState(this, "ENGLISH");
        }