コード例 #1
0
ファイル: ATM.cs プロジェクト: Partast1/TheEggClock
        //Takes a card
        public void InsertCard(Card card)
        {
            ATMMessages atmm = new ATMMessages();

            atmm.InsertMessage();

            Convert.ToInt32(card.Pin);
            PromptPIN(card);
        }
コード例 #2
0
ファイル: ATM.cs プロジェクト: Partast1/TheEggClock
        // Prompts the user for their PIN code
        public void PromptPIN(Card card)
        {
            ATMMessages atmm = new ATMMessages();
            int         value;

            atmm.PromptMessage();
            try
            {
                int input = Convert.ToInt32(Console.ReadLine());

                val.ValidateAccount(card, input);
            }
            catch (FormatException e)

            {
                throw new Exception("Wrong input", e);
            }
            finally
            {
                PromptPIN(card);
            }
        }