crud de variante terminado, tal vez con detalles
This commit is contained in:
+2
-3
@@ -47,7 +47,6 @@ namespace compabetov2.admin
|
||||
private void cargarInto()
|
||||
{
|
||||
txtNombre.Text = producto.nombre;
|
||||
txtPrecio.Text = producto.precion.ToString();
|
||||
lbImg.Text = $"Imagen: {Path.GetFileName(imagePath)}"; ;
|
||||
}
|
||||
|
||||
@@ -58,8 +57,8 @@ namespace compabetov2.admin
|
||||
|
||||
private void pictureBox2_Click(object sender, EventArgs e)
|
||||
{
|
||||
try {
|
||||
decimal precio = decimal.Parse(txtPrecio.Text);
|
||||
try {
|
||||
decimal precio = 0;
|
||||
string nombre = txtNombre.Text;
|
||||
//en caso de que descida cambiar la imagen
|
||||
if (!imagePath.Equals(""))
|
||||
|
||||
Reference in New Issue
Block a user