Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 private void Form1_Load(object sender, System.EventArgs e)
 {
     customer = new Customer("John", "Mendez", "*****@*****.**");
     lblCustomer.Text = customer.GetDisplayText();
 }
Ejemplo n.º 3
0
 public void Add(Customer customer)
 {
     customers.Add(customer);
 }