Files
Final_Das/Vista/FrmOrdenDeCompra.cs

39 lines
905 B
C#

using Controladora;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Vista
{
public partial class FrmOrdenDeCompra : Form
{
public FrmOrdenDeCompra()
{
InitializeComponent();
}
private void CargarDatos()
{
dgvPresupuesto.DataSource = null;
var listapresupuesto = ControladoraPresupuestos.Instance.Listar();
dgvPresupuesto.DataSource = listapresupuesto;
numId.Value = (listapresupuesto.Count > 0) ?
listapresupuesto.Max(x => x.Id + 1) :
0;
numId.Enabled = false;
}
private void btnAddProducto_Click(object sender, EventArgs e)
{
}
}
}