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

            foreach (Customer c in customers)
            {
                base.Add(c);
            }
        }
Esempio n. 2
0
 public frmCustomers()
 {
     InitializeComponent();
     customerList = CustomerDB.GetCustomers();
     foreach (Customer c in customerList)
     {
         lstCustomers.Items.Add(c.GetDisplayText(" "));
     }
 }
Esempio n. 3
0
        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);
        }
Esempio n. 5
0
 // Form load event handler
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     customers = CustomerDB.GetCustomers();
     FillCustomerListBox();
 }
Esempio n. 6
0
 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
        }
Esempio n. 8
0
 private void frmProductionMain_Load(object sender, System.EventArgs e)
 {
     customers = CustomerDB.GetCustomers();
     FillCustomerListBox();
 }
Esempio n. 9
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
 }
Esempio n. 10
0
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     // TODO: Add a statement that gets the customers here
     customers = CustomerDB.GetCustomers();
     FillCustomerListBox();
 }