diff --git a/.vs/compabetoOG/v17/.wsuo b/.vs/compabetoOG/v17/.wsuo index 9653972..4ac8e73 100644 Binary files a/.vs/compabetoOG/v17/.wsuo and b/.vs/compabetoOG/v17/.wsuo differ diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index fab0e58..a143a07 100644 Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb index ce5df14..9333524 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/bin/Debug/data.db b/bin/Debug/data.db index 9dc7eb9..0ae3cb7 100644 Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ diff --git a/inventario.Designer.cs b/inventario.Designer.cs index 6618137..2dbcdfa 100644 --- a/inventario.Designer.cs +++ b/inventario.Designer.cs @@ -214,6 +214,7 @@ this.Name = "inventario"; this.Text = "inventario"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.inventario_Load); this.flowLayoutPanel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); diff --git a/inventario.cs b/inventario.cs index 8a4dc34..7b961a8 100644 --- a/inventario.cs +++ b/inventario.cs @@ -198,5 +198,10 @@ namespace compabetov2 // Código para realizar la acción } } + + private void inventario_Load(object sender, EventArgs e) + { + + } } } diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 3545a42..4382aa9 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 13a0f52..6fd8f5d 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/obj/Debug/compabetov2.csproj.AssemblyReference.cache b/obj/Debug/compabetov2.csproj.AssemblyReference.cache index 1367df0..46c7c97 100644 Binary files a/obj/Debug/compabetov2.csproj.AssemblyReference.cache and b/obj/Debug/compabetov2.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache index 339d4f0..8f1bb2d 100644 --- a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache +++ b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -953cb31f9b6e74dde952aba09707a9add648ded1 +424f6d4f8bcbc47e89c98d2fa689cb77dffd9f6b5116717e9e8dca5ece3777d7 diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache index 7f542a6..2b14cea 100644 Binary files a/obj/Debug/compabetov2.csproj.GenerateResource.cache and b/obj/Debug/compabetov2.csproj.GenerateResource.cache differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index fab0e58..a143a07 100644 Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb index ce5df14..9333524 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ diff --git a/vender.cs b/vender.cs index 094ccbd..6d12471 100644 --- a/vender.cs +++ b/vender.cs @@ -7,6 +7,7 @@ using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Globalization; +using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -54,7 +55,8 @@ namespace compabetov2 PictureBox pic = new PictureBox(); pic.Dock = DockStyle.Fill; pic.SizeMode = PictureBoxSizeMode.Zoom; - pic.Image = Properties.Resources.Modelo; + string rutaImg = Path.Combine(Application.StartupPath, "Resources", producto.img); + pic.Image = Image.FromFile(rutaImg); pic.BackgroundImageLayout = ImageLayout.Stretch; pic.Tag = producto.idProducto; @@ -140,7 +142,7 @@ namespace compabetov2 // Obtener información del Label id y precio int idProducto = int.Parse(id.Text); - decimal precioProducto; + decimal precioProducto = producto.precion; if (decimal.TryParse(precio.Text, NumberStyles.Currency, CultureInfo.CurrentCulture, out precioProducto)) { // Generar ticket y agregarlo al flowLayoutPanel2 @@ -149,7 +151,7 @@ namespace compabetov2 else { // Manejar el caso en el que la conversión no sea exitosa - MessageBox.Show("Formato de precio no válido.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + //MessageBox.Show("Formato de precio no válido.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } // Generar ticket y agregarlo al flowLayoutPanel2