Exemple #1
0
 public bool Transfer(BunkAccount destinationBunkAccount, Money money)
 {
     if (Expend(money))
     {
         destinationBunkAccount.Enroll(money);
         History.Add("Перевод " + money + " на счет " + destinationBunkAccount.Number);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #2
0
 Player(String login, String password, BunkAccount bunkAccount)
     : base(login, password)
 {
     GamesList   = new List <Game>();
     BunkAccount = bunkAccount;
 }
Exemple #3
0
        // Developers


        public GameCompany(String name)
        {
            Name        = name;
            BunkAccount = new BunkAccount();
            GamesList   = new List <Game>();
        }