示例#1
0
 public void AddAccount(Customer c,Account a)
 {
     c.Accounts.Add(a);
 }
示例#2
0
 public void DelAccount(Customer c, Account a)
 {
     c.Accounts.Remove(a);
 }
示例#3
0
        public void CreateCustomer(string name,string email)
        {
            List<Account> accounts = new List<Account>();

            Customer c = new Customer(name, email, accounts);

            Customers.Add(c);

            refresh();
        }