public void Fill() { List <Customer> customers = CustomerDB.GetCustomers(); foreach (Customer c in customers) { this.Add(c); } }
// changed Fill method public void Fill() { List <Customer> customers = CustomerDB.GetCustomers(); foreach (Customer cust in customers) { base.Add(cust); } }
public void Fill() // Note for teacher (Ron Little): We talked about this method, I didn't know how to implement it without skipping over the creation of a new list of customers... { // ... and you gave me the go ahead to ignore it, so I haven't fixed this so I can skip ths step. this.Clear(); List <Customer> customers = CustomerDB.GetCustomers(); foreach (Customer c in customers) { Add(c); } }
public void Fill() { customers = CustomerDB.GetCustomers(); }
public void Fill() { customers.Clear(); customers = CustomerDB.GetCustomers(); count = customers.Count(); }