public void Fill()
        {
            List <Customer> customers = CustomerDB.GetCustomers();

            foreach (Customer c in customers)
            {
                this.Add(c);
            }
        }
Exemple #2
0
        // changed Fill method
        public void Fill()
        {
            List <Customer> customers = CustomerDB.GetCustomers();

            foreach (Customer cust in customers)
            {
                base.Add(cust);
            }
        }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
 public void Fill()
 {
     customers = CustomerDB.GetCustomers();
 }
Exemple #5
0
 public void Fill()
 {
     customers.Clear();
     customers = CustomerDB.GetCustomers();
     count     = customers.Count();
 }