Exemple #1
0
 private CustomerList MakeCustomerList(Customer c, int count)
 {
     CustomerList customerList = new CustomerList();
     for (int i = 0; i < count; i++)
     {
         Customer cust = (Customer)c.Clone();
         customerList.Add(cust);
     }
     return customerList;
 }
Exemple #2
0
 private void Form1_Load(object sender, System.EventArgs e)
 {
     customer = new Customer("John", "Mendez", "*****@*****.**");
     lblCustomer.Text = customer.GetDisplayText();
 }
 public void Add(Customer customer)
 {
     customers.Add(customer);
 }