private List <Customer> customers = null; // create class variable list for customer

        private void frmCustomers_Load(object sender, EventArgs e)
        {
            customers = CustomerDB.GetCustomers(); // get list of customers
            FillCustomerListBox();                 // call method to fill customer list box
        }
Beispiel #2
0
 public void Save()
 {
     CustomerDB.SaveCustomers(this);
 }
Beispiel #3
0
 public void Save()
 {
     CustomerDB.SaveCustomers(customers);
 }
Beispiel #4
0
 public void Fill()
 {
     customers = CustomerDB.GetCustomers();
 }
Beispiel #5
0
 private void frmCustomers_Load(object sender, System.EventArgs e)
 {
     customers = CustomerDB.GetCustomers();
     FillCustomerListBox();
 }
Beispiel #6
0
 private void frmCustomers_Load(object sender, EventArgs e) // When the form loads...
 {
     customers = CustomerDB.GetCustomers();                 // Grab the customers out of the database
     FillCustomerListBox();                                 // Then fill the list box with them
 }
Beispiel #7
0
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     // TODO: Add a statement that gets the customers here
     customers = CustomerDB.GetCustomers();
     FillCustomerListBox();
 }