Пример #1
0
        public static void AddAccount(OwnerInfo ownerInfo)
        {
            indexator += 1;
            string num = "";

            for (int i = 0; i < 16 - indexator.ToString().Length; i++)
            {
                num += "0";
            }
            num += indexator.ToString();
            string pin = "";

            for (int i = 0; i < 4 - indexator.ToString().Length; i++)
            {
                pin += "0";
            }
            pin += indexator.ToString();
            Card        card        = new Card(num, pin);
            BankAccount bankAccount = new BankAccount(ownerInfo);

            bankAccounts.Add(card, bankAccount);
        }
Пример #2
0
 public BankAccount(OwnerInfo ownerInfo)
 {
     this.balance   = 0;
     this.ownerInfo = ownerInfo;
 }