Beispiel #1
0
        //boton para colocar los productos
        private void btnColocar_Click(object sender, EventArgs e)
        {
            Producto p = new Producto(txtCodigo.Text, txtProducto.Text, Convert.ToDouble(lbPrecio.Text));
            Detalle  d = new Detalle(p, Convert.ToInt64(txtCantidad.Text));

            f.AddDetalle(d);
            lbTotalApagar.Text = f.GetTotalFacturado().ToString();
            dataProductos.Rows.Add(d.GetProducto().GetCodigo(), d.GetProducto().GetDescripcion(), d.GetCantidad(), d.GetProducto().GetPrecioVenta(), d.GetTotalDetalle());
        }
Beispiel #2
0
 //Metodo para AGREGAR un detalle,
 public void AddDetalle(Detalle det)
 {
     detalle.Add(det);
 }