Ejemplo n.º 1
0
 public Bill(int id, Customer c, List<Package> p)
 {
     IdBill = id;
     Cliente = c;
     Items = p;
     ValorFactura = totalCost();
 }
Ejemplo n.º 2
0
 public Bill()
 {
     IdBill = 0;
     Cliente = new Customer();
     Items = new List<Package>();
     ValorFactura = totalCost();
 }
 public Customer ClientesEDIT(int id)
 {
     Customer cli = new Customer();
     foreach (Customer c in customers.getCustomer())
         if (c.IdCliente == id)
         {
             cli = c;
         }
     return cli;
 }
 public void ClientesADD(int IdC, string NombreC, string DirC, string TelC, string EmailC, int tipoC)
 {
     Customer c = new Customer(IdC, NombreC, DirC, TelC, EmailC, tipoC);
     customers.addCustomer(c);
 }
 public void addCustomer(Customer c)
 {
     clientes.Add(c);
 }
 public void AgregarCliente(int IdC, string NombreC, string DireccionC, string TelefonoC, string EmailC, int tipoC)
 {
     Customer c = new Customer(IdC, NombreC, DireccionC, TelefonoC, EmailC, tipoC);
     customers.addCustomer(c);
 }