Ejemplo n.º 1
0
        private void frmCustomers_Load(object sender, EventArgs e)
        {
            customers.Changed += new CustomerList.ChangeHandler(HandleChange);

            customers.Fill();
            FillCustomerListBox();
        }
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     // register the event and it's delegate here
     customers.Fill();
     FillCustomerListBox();
     customers.Changed += new CustomerList.ChangeHandler(HandleChange);
 }
Ejemplo n.º 3
0
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     // register the event and it's delegate here
     customers.hasBeenEdited += new CustomerList.EditedHandiler(SaveAndUpdate);
     customers.Fill();
     FillCustomerListBox();
 }
Ejemplo n.º 4
0
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     customers.Changed += customers =>
     {
         customers.Save();
         FillCustomerListBox();
     };
     customers.Fill();
     FillCustomerListBox();
 }
Ejemplo n.º 5
0
 private void frmCustomers_Load(object sender, EventArgs e)
 {
     // register the event and it's delegate here
     customers.Fill();
     FillCustomerListBox();
 }