예제 #1
0
        public void CreareCont()
        {
            Console.Write("Introduceti numele: ");
            var nume = Console.ReadLine();

            Console.WriteLine();

            //Add name and IBAN
            BanckAccount cont = new BanckAccount {
                NumeUser = nume,
                IBAN     = _account.Count + 1
            };

            //add object to the list
            _account.Add(cont);

            Console.WriteLine("Cont creat cu succes cu numele {0}, IBAN {1}", _account.Last().NumeUser, _account.Last().IBAN);
            Console.WriteLine();
        }
예제 #2
0
        public void AfisareSold()
        {
            BanckAccount obj = ObjectFromListBasedOnIBAN();

            Console.WriteLine("Suma din cont este: {0}", obj.Suma);
        }