crud de variante terminado, tal vez con detalles

This commit is contained in:
Carlos Sandoval
2024-06-24 23:15:03 -06:00
parent a9c9bd2c05
commit a610343abe
24 changed files with 288 additions and 227 deletions
+2 -3
View File
@@ -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(""))