public void Fill() { List <Customer> customers = CustomerDB.GetCustomers(); foreach (Customer c in customers) { base.Add(c); } }
public frmCustomers() { InitializeComponent(); customerList = CustomerDB.GetCustomers(); foreach (Customer c in customerList) { lstCustomers.Items.Add(c.GetDisplayText(" ")); } }
private void frmCustomers_Load(object sender, EventArgs e) { customers = CustomerDB.GetCustomers(); foreach (Customer c in customers) { lstCustomers.Items.Add(c); } }
public void Fill() { List <Customer> customers = CustomerDB.GetCustomers(); foreach (Customer customer in customers) { base.Add(customer); } Changed(this); }
// Form load event handler private void frmCustomers_Load(object sender, EventArgs e) { customers = CustomerDB.GetCustomers(); FillCustomerListBox(); }
public void Fill() { customers = CustomerDB.GetCustomers(); }
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 }
private void frmProductionMain_Load(object sender, System.EventArgs e) { customers = CustomerDB.GetCustomers(); FillCustomerListBox(); }
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 }
private void frmCustomers_Load(object sender, EventArgs e) { // TODO: Add a statement that gets the customers here customers = CustomerDB.GetCustomers(); FillCustomerListBox(); }