private void Vender_Click(object sender, EventArgs e) { int idVenta = controladorFachada.Vender(IdPresupuesto); foreach (LineaPresupuestoDTO linea in Lineas) { foreach (KeyValuePair <int, int> loteyCantidad in linea.LoteYCantidad) { controladorFachada.DescontarProductosDeLote(loteyCantidad.Key, loteyCantidad.Value, idVenta); } } if (idVenta != 0) { VendidoTexto.Visible = true; Vender.Visible = false; Cancelar.Text = "Volver"; } }