Ejemplo n.º 1
0
        public void Init()
        {
            Console.WriteLine("Enter your name");
            currentName = Console.ReadLine();
            Console.WriteLine("Enter your name of account");
            currentNameAccount = Console.ReadLine();
            Console.WriteLine("Enter your account id");

            if (int.TryParse(Console.ReadLine(), out currentId))
            {

            }
            else
            {
                Console.WriteLine("Enter normal value of id");
            }
            
            foreach(Client c in currentBank.GetClients())
            {
                if (c.GetName() == currentName)
                {
                   for(int i = 0; i < c.GetAccountCounter(); i++)
                    {
                        if(c.)
                    }
                }
            }

        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Bank AstanaBank = new Bank();

            AstanaBank.AddClient("First Client");
            Console.WriteLine("Account created with 3 accounts.\nUSD ID {0}, TENGE ID {1}, RUBLE ID {2}",
                              AstanaBank.GetClients()[0].GetAccountDollar().GetAccountID(), AstanaBank.GetClients()[0].GetAccountTenge().GetAccountID(),
                              AstanaBank.GetClients()[0].GetAccountRuble().GetAccountID());
            Console.WriteLine("Please remeber your passwords for 3 accounts. \nUSD ID {0}, TENGE ID {1}, RUBLE ID {2}",
                              AstanaBank.GetClients()[0].GetAccountDollar().GetPassword(), AstanaBank.GetClients()[0].GetAccountTenge().GetPassword(),
                              AstanaBank.GetClients()[0].GetAccountRuble().GetPassword());

            ATM atm1 = new ATM();

            atm1.ShowBalance(AstanaBank.GetClients()[0]);


            Console.ReadLine();
        }