Ejemplo n.º 1
0
        public void Fill()
        {
            List <Customer> customers = CustomerDB.GetCustomers();

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

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