HAY UN AVANCE

This commit is contained in:
fedpo
2024-08-27 04:36:00 +01:00
parent 670190c44b
commit 2428f615a6
76 changed files with 5786 additions and 496 deletions

34
Vista/FrmCategorias.cs Normal file
View File

@@ -0,0 +1,34 @@
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 FrmCategorias : Form
{
public FrmCategorias()
{
InitializeComponent();
RecargarTabla();
}
private void RecargarTabla()
{
dgvCategorias.DataSource = ControladoraCategorias.Instance.Listar();
}
private void btnAñadir_Click(object sender, EventArgs e)
{
new FrmCategoria().ShowDialog();
RecargarTabla();
}
}
}