Пример #1
0
        static void AddNewUser(string userName, string userSurname, int userAge, string userPass, List <Account> listOfUsers, string cardName, string cardPin)
        {
            Account newUser = new Account(userName, userSurname, userAge, userPass, cardName, cardPin);

            Console.WriteLine();
            newUser.GetInfo(newUser.UserLogin, userPass);
            listOfUsers.Add(newUser);
        }
Пример #2
0
        static void OperationWithCards(string userAnswer, Account acc, string userLogin, string userPass)
        {
            switch (userAnswer)
            {
            case "1":
                Console.Write("Card name: ");
                string inputCardName = Console.ReadLine();
                Console.Write("Card pin: ");
                string inputCardPin = Console.ReadLine();
                acc.AddNewCard(inputCardName, inputCardPin);
                break;

            case "2":
                ChangeBalance(acc);
                break;

            case "3":
                acc.GetInfo(userLogin, userPass);
                break;

            default:
                break;
            }
        }