subo pagina de editar x2

This commit is contained in:
Michael Robles
2024-06-19 16:41:12 -07:00
parent 24f7b01847
commit ae6945f7e4
15 changed files with 42 additions and 20 deletions
+15 -2
View File
@@ -1,4 +1,5 @@
using System;
using compabetov2.database.modelos;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -13,8 +14,15 @@ namespace compabetov2.admin
{
public partial class editar : Form
{
public editar()
private Producto producto;
private crud ventanaPadre;
private string imagePath;
public editar (Producto producto, crud ventanaPadre)
{
imagePath = Path.Combine(Application.StartupPath, "Resources", producto.img);
InitializeComponent();
}
@@ -31,5 +39,10 @@ namespace compabetov2.admin
lbImg.Text = $"Imagen: {Path.GetFileName(imagePath)}";
}
}
private void editar_Load(object sender, EventArgs e)
{
}
}
}