bajar cambios x4
This commit is contained in:
+15
-2
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using compabetov2.database.modelos;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@@ -13,8 +14,15 @@ namespace compabetov2.admin
|
|||||||
{
|
{
|
||||||
public partial class editar : Form
|
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();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,5 +39,10 @@ namespace compabetov2.admin
|
|||||||
lbImg.Text = $"Imagen: {Path.GetFileName(imagePath)}";
|
lbImg.Text = $"Imagen: {Path.GetFileName(imagePath)}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void editar_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user