示例#1
0
 public bool AddAccount(Account account)
 {
     if (chartOfAccounts.ContainsKey(account.GetFullAccountNumber()))
         return false;
     chartOfAccounts.Add(account.GetFullAccountNumber(), account);
     return true;
 }
示例#2
0
 public bool DeactivateAccount(Account account)
 {
     if (chartOfAccounts.ContainsKey(account.GetFullAccountNumber()))
     {
         try
         {
             chartOfAccounts.Remove(account.GetFullAccountNumber());
         }
         catch (ArgumentNullException e)
         {
             return false;
         }
         return true;
     }
     return false;
 }
示例#3
0
 public bool Equals(Account other)
 {
     return this.GetFullAccountNumber().Equals(other.GetFullAccountNumber());
 }