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
        }
예제 #2
0
 public void Save()
 {
     CustomerDB.SaveCustomers(this);
 }
예제 #3
0
 public void Save()
 {
     CustomerDB.SaveCustomers(customers);
 }
예제 #4
0
 public void Fill()
 {
     customers = CustomerDB.GetCustomers();
 }
예제 #5
0
 private void frmCustomers_Load(object sender, System.EventArgs e)
 {
     customers = CustomerDB.GetCustomers();
     FillCustomerListBox();
 }
예제 #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
 }
예제 #7
0
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     // TODO: Add a statement that gets the customers here
     customers = CustomerDB.GetCustomers();
     FillCustomerListBox();
 }