Example #1
0
 private void btnCompletar_Click(object sender, EventArgs e)
 {
     if (lista.Count == 0)
     {
         MessageBox.Show("Agregue productos", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         ServiciosFacturas serviciosFacturas = new ServiciosFacturas();
         Factura           factura           = new Factura();
         factura.Cliente = "1065840833";
         factura.Valor   = int.Parse(txtprecio.Text);
         factura.Estado  = "Pagado";
         factura.Fecha   = DateTime.Today;
         CargarProductos(factura);
         serviciosFacturas.NuevaFactura(factura, factura.Productos, verificadorFactura.Checked);
         MapearMovimiento(cuenta);
         limpiar();
     }
 }