diff --git a/.vs/compabetoOG/v17/.wsuo b/.vs/compabetoOG/v17/.wsuo
index 8869f13..b27c6a8 100644
Binary files a/.vs/compabetoOG/v17/.wsuo and b/.vs/compabetoOG/v17/.wsuo differ
diff --git a/MenuPrincipal.Designer.cs b/MenuPrincipal.Designer.cs
index d37b2cc..910b70d 100644
--- a/MenuPrincipal.Designer.cs
+++ b/MenuPrincipal.Designer.cs
@@ -100,6 +100,7 @@
this.lblhora.Size = new System.Drawing.Size(365, 177);
this.lblhora.TabIndex = 8;
this.lblhora.Text = "label1";
+ this.lblhora.Click += new System.EventHandler(this.lblhora_Click);
//
// flowLayoutPanel1
//
@@ -274,6 +275,7 @@
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 2;
this.pictureBox2.TabStop = false;
+ this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
//
// pictureBox1
//
diff --git a/MenuPrincipal.cs b/MenuPrincipal.cs
index 36d8e58..275a215 100644
--- a/MenuPrincipal.cs
+++ b/MenuPrincipal.cs
@@ -112,5 +112,18 @@ namespace compabetov2
this.Dispose(true);
}
+
+ private void lblhora_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void pictureBox2_Click(object sender, EventArgs e)
+ {
+ vender vender = new vender();
+ vender.Show();
+
+ this.Dispose(true);
+ }
}
}
diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs
index 5cfd703..8290a57 100644
--- a/Properties/Resources.Designer.cs
+++ b/Properties/Resources.Designer.cs
@@ -210,6 +210,16 @@ namespace compabetov2.Properties {
}
}
+ ///
+ /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap mas {
+ get {
+ object obj = ResourceManager.GetObject("mas", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
///
@@ -220,6 +230,16 @@ namespace compabetov2.Properties {
}
}
+ ///
+ /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap menos {
+ get {
+ object obj = ResourceManager.GetObject("menos", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
///
diff --git a/Properties/Resources.resx b/Properties/Resources.resx
index 13ef05d..741cf10 100644
--- a/Properties/Resources.resx
+++ b/Properties/Resources.resx
@@ -118,6 +118,9 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ ..\Resources\bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\dummy logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -148,12 +151,18 @@
..\Resources\cua1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\Menui.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\mermas.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\LoginOriginal1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\menos.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\Homero1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -172,14 +181,11 @@
..\Resources\Cuentas.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\HomeroMenu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\productoi.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\Menui.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\Menui1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\rec.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -187,11 +193,11 @@
..\Resources\Group 1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\Menui1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\Modelo.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\HomeroMenu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\reportesi.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -199,7 +205,7 @@
..\Resources\Personal.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\Modelo.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\mas.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/Resources/mas.png b/Resources/mas.png
new file mode 100644
index 0000000..2f26e9a
Binary files /dev/null and b/Resources/mas.png differ
diff --git a/Resources/menos.png b/Resources/menos.png
new file mode 100644
index 0000000..bef3754
Binary files /dev/null and b/Resources/menos.png differ
diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe
index a2d6499..1bd1e0e 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 353551a..b9373f1 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 fd8c616..1e2530b 100644
Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ
diff --git a/compabetov2.csproj b/compabetov2.csproj
index 021d64e..051a0a4 100644
--- a/compabetov2.csproj
+++ b/compabetov2.csproj
@@ -295,6 +295,8 @@
+
+
diff --git a/database/DAO.cs b/database/DAO.cs
index 79603b9..1651539 100644
--- a/database/DAO.cs
+++ b/database/DAO.cs
@@ -147,8 +147,8 @@ namespace compabetov2.database
var db_conexion = new Conexion();
try
{
- using (SQLiteConnection conexion = db_conexion.get_connection())
- {
+ SQLiteConnection conexion = db_conexion.get_connection();
+
conexion.Open();
string sql = "SELECT * FROM Producto INNER JOIN Categoria ON Producto.fk_idcategoria = Categoria.idcategoria";
@@ -156,7 +156,6 @@ namespace compabetov2.database
reader = command.ExecuteReader();
return reader;
- }
}
catch (SQLiteException ex) {
MessageBox.Show(ex.Message);
diff --git a/database/service.cs b/database/service.cs
index 48e3a21..b40a626 100644
--- a/database/service.cs
+++ b/database/service.cs
@@ -26,17 +26,17 @@ namespace compabetov2.database
while (reader.Read())
{
Categoria categoria = new Categoria(
- (int)reader["idcategoria"],
+ int.Parse(reader["idcategoria"].ToString()),
reader["nombre"].ToString(),
reader["descripcion"].ToString());
Producto producto = new Producto(
- (int)reader["idproducto"],
+ int.Parse(reader["idproducto"].ToString()),
reader["nombre"].ToString(),
reader["descripcion"].ToString(),
- (decimal)reader["precio"],
+ decimal.Parse(reader["precio"].ToString()),
reader["img"].ToString(),
- (int)reader["stock"],
+ int.Parse(reader["stock"].ToString()),
categoria);
productos.Add(producto);
diff --git a/login.Designer.cs b/login.Designer.cs
index 6ed90c7..d937a1e 100644
--- a/login.Designer.cs
+++ b/login.Designer.cs
@@ -72,17 +72,18 @@
this.txtusuario.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtusuario.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold);
this.txtusuario.Location = new System.Drawing.Point(1235, 457);
- this.txtusuario.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.txtusuario.Margin = new System.Windows.Forms.Padding(4);
this.txtusuario.Name = "txtusuario";
this.txtusuario.Size = new System.Drawing.Size(539, 60);
this.txtusuario.TabIndex = 2;
+ this.txtusuario.TextChanged += new System.EventHandler(this.txtusuario_TextChanged);
//
// txtcontraseña
//
this.txtcontraseña.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtcontraseña.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold);
this.txtcontraseña.Location = new System.Drawing.Point(1235, 695);
- this.txtcontraseña.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.txtcontraseña.Margin = new System.Windows.Forms.Padding(4);
this.txtcontraseña.Name = "txtcontraseña";
this.txtcontraseña.PasswordChar = '*';
this.txtcontraseña.Size = new System.Drawing.Size(539, 60);
diff --git a/login.cs b/login.cs
index acfddb0..4ed11b8 100644
--- a/login.cs
+++ b/login.cs
@@ -17,8 +17,23 @@ namespace compabetov2
public login()
{
InitializeComponent();
+ txtusuario.TextChanged += Txt_TextChanged;
+ txtcontraseña.TextChanged += Txt_TextChanged;
}
+ private void Txt_TextChanged(object sender, EventArgs e)
+ {
+ // Verificar si hay al menos 2 caracteres en ambos TextBox
+ if (txtusuario.Text.Length >= 2 && txtcontraseña.Text.Length >= 2)
+ {
+ button1.Enabled = true; // Habilitar el botón
+ }
+ else
+ {
+ button1.Enabled = false; // Deshabilitar el botón
+ }
+ }
+
private void panel2_Paint(object sender, PaintEventArgs e)
{
@@ -72,7 +87,21 @@ namespace compabetov2
private void login_Load(object sender, EventArgs e)
{
+ button1.Enabled = false;
+ }
+
+
+ private void txtusuario_TextChanged(object sender, EventArgs e)
+ {
+ if (txtusuario.Text.Length >= 2 && txtcontraseña.Text.Length >= 2)
+ {
+ button1.Enabled = true; // Habilitar el botón
+ }
+ else
+ {
+ button1.Enabled = false; // Deshabilitar el botón
+ }
}
}
diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache
index 5aab9e3..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 ee8be6f..6fd8f5d 100644
Binary files a/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ
diff --git a/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
index f75f6cc..fb0c464 100644
Binary files a/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll and b/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ
diff --git a/obj/Debug/compabetov2.Properties.Resources.resources b/obj/Debug/compabetov2.Properties.Resources.resources
index 31c228c..156f192 100644
Binary files a/obj/Debug/compabetov2.Properties.Resources.resources and b/obj/Debug/compabetov2.Properties.Resources.resources differ
diff --git a/obj/Debug/compabetov2.csproj.AssemblyReference.cache b/obj/Debug/compabetov2.csproj.AssemblyReference.cache
index ba5393c..34a66a5 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.FileListAbsolute.txt b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt
index 5f1e2a0..b96bd7a 100644
--- a/obj/Debug/compabetov2.csproj.FileListAbsolute.txt
+++ b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt
@@ -57,3 +57,4 @@ C:\Users\carsu\Source\Repos\compabetoOG\bin\Debug\compabetov2.exe.manifest
C:\Users\carsu\Source\Repos\compabetoOG\bin\Debug\compabetov2.application
C:\Users\carsu\Source\Repos\compabetoOG\obj\Debug\compabetov2.exe.manifest
C:\Users\carsu\Source\Repos\compabetoOG\obj\Debug\compabetov2.application
+C:\Users\Googl\Documents\compabetov2\obj\Debug\compabetov2.envios.resources
diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache
index 5b9475c..563c250 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 a2d6499..1bd1e0e 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 353551a..b9373f1 100644
Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ
diff --git a/vender.Designer.cs b/vender.Designer.cs
index 00712ec..c442a1e 100644
--- a/vender.Designer.cs
+++ b/vender.Designer.cs
@@ -28,8 +28,14 @@
///
private void InitializeComponent()
{
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.components = new System.ComponentModel.Container();
+ this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
+ this.horafecha = new System.Windows.Forms.Timer(this.components);
+ this.lblfecha = new System.Windows.Forms.Label();
+ this.lblhora = new System.Windows.Forms.Label();
+ this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.panel2 = new System.Windows.Forms.Panel();
this.pictureBox7 = new System.Windows.Forms.PictureBox();
@@ -38,110 +44,81 @@
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
- this.button6 = new System.Windows.Forms.Button();
- this.button7 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.button8 = new System.Windows.Forms.Button();
- this.button9 = new System.Windows.Forms.Button();
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.label9 = new System.Windows.Forms.Label();
- this.button10 = new System.Windows.Forms.Button();
- this.button11 = new System.Windows.Forms.Button();
- this.pictureBox3 = new System.Windows.Forms.PictureBox();
- this.label10 = new System.Windows.Forms.Label();
- this.label11 = new System.Windows.Forms.Label();
- this.label12 = new System.Windows.Forms.Label();
- this.button12 = new System.Windows.Forms.Button();
- this.button13 = new System.Windows.Forms.Button();
- this.pictureBox4 = new System.Windows.Forms.PictureBox();
- this.label13 = new System.Windows.Forms.Label();
- this.label14 = new System.Windows.Forms.Label();
- this.label15 = new System.Windows.Forms.Label();
- this.button14 = new System.Windows.Forms.Button();
- this.button15 = new System.Windows.Forms.Button();
- this.pictureBox5 = new System.Windows.Forms.PictureBox();
- this.label16 = new System.Windows.Forms.Label();
- this.label17 = new System.Windows.Forms.Label();
- this.label18 = new System.Windows.Forms.Label();
- this.button16 = new System.Windows.Forms.Button();
- this.button17 = new System.Windows.Forms.Button();
- this.pictureBox6 = new System.Windows.Forms.PictureBox();
- this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
- this.pictureBox8 = new System.Windows.Forms.PictureBox();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.timer1 = new System.Windows.Forms.Timer(this.components);
+ this.timer2 = new System.Windows.Forms.Timer(this.components);
+ this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.textBox2 = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel2.SuspendLayout();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit();
this.flowLayoutPanel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).BeginInit();
this.SuspendLayout();
//
- // groupBox1
+ // horafecha
//
- this.groupBox1.Controls.Add(this.label16);
- this.groupBox1.Controls.Add(this.label17);
- this.groupBox1.Controls.Add(this.label18);
- this.groupBox1.Controls.Add(this.button16);
- this.groupBox1.Controls.Add(this.button17);
- this.groupBox1.Controls.Add(this.pictureBox6);
- this.groupBox1.Controls.Add(this.label13);
- this.groupBox1.Controls.Add(this.label14);
- this.groupBox1.Controls.Add(this.label15);
- this.groupBox1.Controls.Add(this.button14);
- this.groupBox1.Controls.Add(this.button15);
- this.groupBox1.Controls.Add(this.pictureBox5);
- this.groupBox1.Controls.Add(this.label10);
- this.groupBox1.Controls.Add(this.label11);
- this.groupBox1.Controls.Add(this.label12);
- this.groupBox1.Controls.Add(this.button12);
- this.groupBox1.Controls.Add(this.button13);
- this.groupBox1.Controls.Add(this.pictureBox4);
- this.groupBox1.Controls.Add(this.label7);
- this.groupBox1.Controls.Add(this.label8);
- this.groupBox1.Controls.Add(this.label9);
- this.groupBox1.Controls.Add(this.button10);
- this.groupBox1.Controls.Add(this.button11);
- this.groupBox1.Controls.Add(this.pictureBox3);
- this.groupBox1.Controls.Add(this.label4);
- this.groupBox1.Controls.Add(this.label5);
- this.groupBox1.Controls.Add(this.label6);
- this.groupBox1.Controls.Add(this.button8);
- this.groupBox1.Controls.Add(this.button9);
- this.groupBox1.Controls.Add(this.pictureBox2);
- this.groupBox1.Controls.Add(this.label3);
- this.groupBox1.Controls.Add(this.label2);
- this.groupBox1.Controls.Add(this.label1);
- this.groupBox1.Controls.Add(this.button7);
- this.groupBox1.Controls.Add(this.button6);
- this.groupBox1.Controls.Add(this.pictureBox1);
- this.groupBox1.Location = new System.Drawing.Point(398, 151);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(909, 599);
- this.groupBox1.TabIndex = 9;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Cerveza";
+ this.horafecha.Enabled = true;
+ this.horafecha.Tick += new System.EventHandler(this.horafecha_Tick);
//
- // pictureBox1
+ // lblfecha
//
- this.pictureBox1.Image = global::compabetov2.Properties.Resources.Modelo;
- this.pictureBox1.Location = new System.Drawing.Point(40, 61);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(171, 175);
- this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox1.TabIndex = 0;
- this.pictureBox1.TabStop = false;
+ this.lblfecha.AutoSize = true;
+ this.lblfecha.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F);
+ this.lblfecha.ForeColor = System.Drawing.Color.Navy;
+ this.lblfecha.Location = new System.Drawing.Point(370, 85);
+ this.lblfecha.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.lblfecha.Name = "lblfecha";
+ this.lblfecha.Size = new System.Drawing.Size(126, 46);
+ this.lblfecha.TabIndex = 13;
+ this.lblfecha.Text = "label2";
+ this.lblfecha.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+ this.lblfecha.Click += new System.EventHandler(this.lblfecha_Click);
+ //
+ // lblhora
+ //
+ this.lblhora.AutoSize = true;
+ this.lblhora.Font = new System.Drawing.Font("Microsoft Sans Serif", 60F);
+ this.lblhora.ForeColor = System.Drawing.Color.MediumBlue;
+ this.lblhora.Location = new System.Drawing.Point(511, -11);
+ this.lblhora.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.lblhora.Name = "lblhora";
+ this.lblhora.Size = new System.Drawing.Size(249, 91);
+ this.lblhora.TabIndex = 12;
+ this.lblhora.Text = "label1";
+ this.lblhora.Click += new System.EventHandler(this.lblhora_Click);
+ //
+ // flowLayoutPanel2
+ //
+ this.flowLayoutPanel2.BackgroundImage = global::compabetov2.Properties.Resources.rec;
+ this.flowLayoutPanel2.Controls.Add(this.panel1);
+ this.flowLayoutPanel2.Location = new System.Drawing.Point(1204, -1);
+ this.flowLayoutPanel2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+ this.flowLayoutPanel2.Name = "flowLayoutPanel2";
+ this.flowLayoutPanel2.Size = new System.Drawing.Size(243, 968);
+ this.flowLayoutPanel2.TabIndex = 11;
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.Transparent;
+ this.panel1.Controls.Add(this.pictureBox9);
+ this.panel1.Location = new System.Drawing.Point(2, 2);
+ this.panel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(234, 214);
+ this.panel1.TabIndex = 8;
+ //
+ // pictureBox9
+ //
+ this.pictureBox9.Image = global::compabetov2.Properties.Resources.HomeroMenu;
+ this.pictureBox9.Location = new System.Drawing.Point(48, 28);
+ this.pictureBox9.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+ this.pictureBox9.Name = "pictureBox9";
+ this.pictureBox9.Size = new System.Drawing.Size(190, 197);
+ this.pictureBox9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox9.TabIndex = 8;
+ this.pictureBox9.TabStop = false;
//
// flowLayoutPanel1
//
@@ -153,23 +130,26 @@
this.flowLayoutPanel1.Controls.Add(this.button4);
this.flowLayoutPanel1.Controls.Add(this.button5);
this.flowLayoutPanel1.Location = new System.Drawing.Point(-1, 0);
+ this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
- this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061);
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(243, 974);
this.flowLayoutPanel1.TabIndex = 8;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.Controls.Add(this.pictureBox7);
- this.panel2.Location = new System.Drawing.Point(3, 3);
+ this.panel2.Location = new System.Drawing.Point(2, 2);
+ this.panel2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(312, 263);
+ this.panel2.Size = new System.Drawing.Size(234, 214);
this.panel2.TabIndex = 8;
//
// pictureBox7
//
this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu;
- this.pictureBox7.Location = new System.Drawing.Point(64, 35);
+ this.pictureBox7.Location = new System.Drawing.Point(48, 28);
+ this.pictureBox7.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(190, 197);
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -181,14 +161,15 @@
this.button1.BackColor = System.Drawing.Color.Transparent;
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button1.Font = new System.Drawing.Font("Poppins SemiBold", 15F);
+ this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button1.Image = global::compabetov2.Properties.Resources.Menui1;
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.button1.Location = new System.Drawing.Point(3, 272);
+ this.button1.Location = new System.Drawing.Point(2, 220);
+ this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button1.Name = "button1";
- this.button1.Padding = new System.Windows.Forms.Padding(50, 0, 0, 0);
- this.button1.Size = new System.Drawing.Size(312, 115);
+ this.button1.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
+ this.button1.Size = new System.Drawing.Size(234, 93);
this.button1.TabIndex = 8;
this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false;
@@ -198,14 +179,15 @@
this.button2.BackColor = System.Drawing.Color.Transparent;
this.button2.FlatAppearance.BorderSize = 0;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button2.Font = new System.Drawing.Font("Poppins SemiBold", 15F);
+ this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi;
this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.button2.Location = new System.Drawing.Point(3, 393);
+ this.button2.Location = new System.Drawing.Point(2, 317);
+ this.button2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button2.Name = "button2";
- this.button2.Padding = new System.Windows.Forms.Padding(50, 0, 0, 0);
- this.button2.Size = new System.Drawing.Size(312, 115);
+ this.button2.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
+ this.button2.Size = new System.Drawing.Size(234, 93);
this.button2.TabIndex = 9;
this.button2.Text = "Estadisticas";
this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -216,14 +198,15 @@
this.button3.BackColor = System.Drawing.Color.Transparent;
this.button3.FlatAppearance.BorderSize = 0;
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button3.Font = new System.Drawing.Font("Poppins SemiBold", 15F);
+ this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button3.Image = global::compabetov2.Properties.Resources.productoi;
this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.button3.Location = new System.Drawing.Point(3, 514);
+ this.button3.Location = new System.Drawing.Point(2, 414);
+ this.button3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button3.Name = "button3";
- this.button3.Padding = new System.Windows.Forms.Padding(50, 0, 0, 0);
- this.button3.Size = new System.Drawing.Size(312, 115);
+ this.button3.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
+ this.button3.Size = new System.Drawing.Size(234, 93);
this.button3.TabIndex = 10;
this.button3.Text = "Productos";
this.button3.UseVisualStyleBackColor = false;
@@ -233,14 +216,15 @@
this.button4.BackColor = System.Drawing.Color.Transparent;
this.button4.FlatAppearance.BorderSize = 0;
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button4.Font = new System.Drawing.Font("Poppins SemiBold", 15F);
+ this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.button4.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button4.Image = global::compabetov2.Properties.Resources.reportesi;
this.button4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.button4.Location = new System.Drawing.Point(3, 635);
+ this.button4.Location = new System.Drawing.Point(2, 511);
+ this.button4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button4.Name = "button4";
- this.button4.Padding = new System.Windows.Forms.Padding(50, 0, 0, 0);
- this.button4.Size = new System.Drawing.Size(312, 115);
+ this.button4.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
+ this.button4.Size = new System.Drawing.Size(234, 93);
this.button4.TabIndex = 11;
this.button4.Text = "Reportes";
this.button4.UseVisualStyleBackColor = false;
@@ -250,372 +234,74 @@
this.button5.BackColor = System.Drawing.Color.Transparent;
this.button5.FlatAppearance.BorderSize = 0;
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button5.Font = new System.Drawing.Font("Poppins SemiBold", 15F);
+ this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button5.Image = global::compabetov2.Properties.Resources.sesionc;
this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.button5.Location = new System.Drawing.Point(3, 756);
+ this.button5.Location = new System.Drawing.Point(2, 608);
+ this.button5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button5.Name = "button5";
- this.button5.Padding = new System.Windows.Forms.Padding(50, 0, 0, 0);
- this.button5.Size = new System.Drawing.Size(312, 115);
+ this.button5.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
+ this.button5.Size = new System.Drawing.Size(234, 93);
this.button5.TabIndex = 12;
this.button5.Text = "Salir";
this.button5.UseVisualStyleBackColor = false;
//
- // button6
- //
- this.button6.Location = new System.Drawing.Point(40, 242);
- this.button6.Name = "button6";
- this.button6.Size = new System.Drawing.Size(63, 57);
- this.button6.TabIndex = 1;
- this.button6.Text = "button6";
- this.button6.UseVisualStyleBackColor = true;
- //
- // button7
- //
- this.button7.Location = new System.Drawing.Point(157, 242);
- this.button7.Name = "button7";
- this.button7.Size = new System.Drawing.Size(63, 57);
- this.button7.TabIndex = 2;
- this.button7.Text = "button7";
- this.button7.UseVisualStyleBackColor = true;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(109, 262);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(44, 16);
- this.label1.TabIndex = 3;
- this.label1.Text = "label1";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(37, 42);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(44, 16);
- this.label2.TabIndex = 4;
- this.label2.Text = "label2";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(167, 42);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(44, 16);
- this.label3.TabIndex = 5;
- this.label3.Text = "label3";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(454, 42);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(44, 16);
- this.label4.TabIndex = 11;
- this.label4.Text = "label4";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(324, 42);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(44, 16);
- this.label5.TabIndex = 10;
- this.label5.Text = "label5";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(396, 262);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(44, 16);
- this.label6.TabIndex = 9;
- this.label6.Text = "label6";
- //
- // button8
- //
- this.button8.Location = new System.Drawing.Point(444, 242);
- this.button8.Name = "button8";
- this.button8.Size = new System.Drawing.Size(63, 57);
- this.button8.TabIndex = 8;
- this.button8.Text = "button8";
- this.button8.UseVisualStyleBackColor = true;
- //
- // button9
- //
- this.button9.Location = new System.Drawing.Point(327, 242);
- this.button9.Name = "button9";
- this.button9.Size = new System.Drawing.Size(63, 57);
- this.button9.TabIndex = 7;
- this.button9.Text = "button9";
- this.button9.UseVisualStyleBackColor = true;
- //
- // pictureBox2
- //
- this.pictureBox2.Image = global::compabetov2.Properties.Resources.Modelo;
- this.pictureBox2.Location = new System.Drawing.Point(327, 61);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(171, 175);
- this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox2.TabIndex = 6;
- this.pictureBox2.TabStop = false;
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(745, 42);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(44, 16);
- this.label7.TabIndex = 17;
- this.label7.Text = "label7";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(615, 42);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(44, 16);
- this.label8.TabIndex = 16;
- this.label8.Text = "label8";
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Location = new System.Drawing.Point(687, 262);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(44, 16);
- this.label9.TabIndex = 15;
- this.label9.Text = "label9";
- //
- // button10
- //
- this.button10.Location = new System.Drawing.Point(735, 242);
- this.button10.Name = "button10";
- this.button10.Size = new System.Drawing.Size(63, 57);
- this.button10.TabIndex = 14;
- this.button10.Text = "button10";
- this.button10.UseVisualStyleBackColor = true;
- //
- // button11
- //
- this.button11.Location = new System.Drawing.Point(618, 242);
- this.button11.Name = "button11";
- this.button11.Size = new System.Drawing.Size(63, 57);
- this.button11.TabIndex = 13;
- this.button11.Text = "button11";
- this.button11.UseVisualStyleBackColor = true;
- //
- // pictureBox3
- //
- this.pictureBox3.Image = global::compabetov2.Properties.Resources.Modelo;
- this.pictureBox3.Location = new System.Drawing.Point(618, 61);
- this.pictureBox3.Name = "pictureBox3";
- this.pictureBox3.Size = new System.Drawing.Size(171, 175);
- this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox3.TabIndex = 12;
- this.pictureBox3.TabStop = false;
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Location = new System.Drawing.Point(167, 290);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(51, 16);
- this.label10.TabIndex = 23;
- this.label10.Text = "label10";
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Location = new System.Drawing.Point(37, 290);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(51, 16);
- this.label11.TabIndex = 22;
- this.label11.Text = "label11";
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Location = new System.Drawing.Point(109, 510);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(51, 16);
- this.label12.TabIndex = 21;
- this.label12.Text = "label12";
- //
- // button12
- //
- this.button12.Location = new System.Drawing.Point(157, 490);
- this.button12.Name = "button12";
- this.button12.Size = new System.Drawing.Size(63, 57);
- this.button12.TabIndex = 20;
- this.button12.Text = "button12";
- this.button12.UseVisualStyleBackColor = true;
- //
- // button13
- //
- this.button13.Location = new System.Drawing.Point(40, 490);
- this.button13.Name = "button13";
- this.button13.Size = new System.Drawing.Size(63, 57);
- this.button13.TabIndex = 19;
- this.button13.Text = "button13";
- this.button13.UseVisualStyleBackColor = true;
- //
- // pictureBox4
- //
- this.pictureBox4.Image = global::compabetov2.Properties.Resources.Modelo;
- this.pictureBox4.Location = new System.Drawing.Point(40, 309);
- this.pictureBox4.Name = "pictureBox4";
- this.pictureBox4.Size = new System.Drawing.Size(171, 175);
- this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox4.TabIndex = 18;
- this.pictureBox4.TabStop = false;
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.Location = new System.Drawing.Point(454, 301);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(51, 16);
- this.label13.TabIndex = 29;
- this.label13.Text = "label13";
- //
- // label14
- //
- this.label14.AutoSize = true;
- this.label14.Location = new System.Drawing.Point(324, 301);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(51, 16);
- this.label14.TabIndex = 28;
- this.label14.Text = "label14";
- //
- // label15
- //
- this.label15.AutoSize = true;
- this.label15.Location = new System.Drawing.Point(396, 521);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(51, 16);
- this.label15.TabIndex = 27;
- this.label15.Text = "label15";
- //
- // button14
- //
- this.button14.Location = new System.Drawing.Point(444, 501);
- this.button14.Name = "button14";
- this.button14.Size = new System.Drawing.Size(63, 57);
- this.button14.TabIndex = 26;
- this.button14.Text = "button14";
- this.button14.UseVisualStyleBackColor = true;
- //
- // button15
- //
- this.button15.Location = new System.Drawing.Point(327, 501);
- this.button15.Name = "button15";
- this.button15.Size = new System.Drawing.Size(63, 57);
- this.button15.TabIndex = 25;
- this.button15.Text = "button15";
- this.button15.UseVisualStyleBackColor = true;
- //
- // pictureBox5
- //
- this.pictureBox5.Image = global::compabetov2.Properties.Resources.Modelo;
- this.pictureBox5.Location = new System.Drawing.Point(327, 320);
- this.pictureBox5.Name = "pictureBox5";
- this.pictureBox5.Size = new System.Drawing.Size(171, 175);
- this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox5.TabIndex = 24;
- this.pictureBox5.TabStop = false;
- //
- // label16
- //
- this.label16.AutoSize = true;
- this.label16.Location = new System.Drawing.Point(745, 301);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(51, 16);
- this.label16.TabIndex = 35;
- this.label16.Text = "label16";
- //
- // label17
- //
- this.label17.AutoSize = true;
- this.label17.Location = new System.Drawing.Point(615, 301);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(51, 16);
- this.label17.TabIndex = 34;
- this.label17.Text = "label17";
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.Location = new System.Drawing.Point(687, 521);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(51, 16);
- this.label18.TabIndex = 33;
- this.label18.Text = "label18";
- //
- // button16
- //
- this.button16.Location = new System.Drawing.Point(735, 501);
- this.button16.Name = "button16";
- this.button16.Size = new System.Drawing.Size(63, 57);
- this.button16.TabIndex = 32;
- this.button16.Text = "button16";
- this.button16.UseVisualStyleBackColor = true;
- //
- // button17
- //
- this.button17.Location = new System.Drawing.Point(618, 501);
- this.button17.Name = "button17";
- this.button17.Size = new System.Drawing.Size(63, 57);
- this.button17.TabIndex = 31;
- this.button17.Text = "button17";
- this.button17.UseVisualStyleBackColor = true;
- //
- // pictureBox6
- //
- this.pictureBox6.Image = global::compabetov2.Properties.Resources.Modelo;
- this.pictureBox6.Location = new System.Drawing.Point(618, 320);
- this.pictureBox6.Name = "pictureBox6";
- this.pictureBox6.Size = new System.Drawing.Size(171, 175);
- this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox6.TabIndex = 30;
- this.pictureBox6.TabStop = false;
- //
- // pictureBox8
- //
- this.pictureBox8.Location = new System.Drawing.Point(725, 66);
- this.pictureBox8.Name = "pictureBox8";
- this.pictureBox8.Size = new System.Drawing.Size(100, 50);
- this.pictureBox8.TabIndex = 10;
- this.pictureBox8.TabStop = false;
+ // flowLayoutPanel3
+ //
+ this.flowLayoutPanel3.Location = new System.Drawing.Point(244, 230);
+ this.flowLayoutPanel3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+ this.flowLayoutPanel3.Name = "flowLayoutPanel3";
+ this.flowLayoutPanel3.Size = new System.Drawing.Size(955, 769);
+ this.flowLayoutPanel3.TabIndex = 14;
+ this.flowLayoutPanel3.Paint += new System.Windows.Forms.PaintEventHandler(this.flowLayoutPanel3_Paint);
+ //
+ // textBox1
+ //
+ this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
+ this.textBox1.Location = new System.Drawing.Point(274, 186);
+ this.textBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(300, 30);
+ this.textBox1.TabIndex = 15;
+ //
+ // textBox2
+ //
+ this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
+ this.textBox2.Location = new System.Drawing.Point(594, 186);
+ this.textBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+ this.textBox2.Name = "textBox2";
+ this.textBox2.Size = new System.Drawing.Size(300, 30);
+ this.textBox2.TabIndex = 16;
//
// vender
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1924, 1055);
- this.Controls.Add(this.pictureBox8);
- this.Controls.Add(this.groupBox1);
+ this.AutoScroll = true;
+ this.ClientSize = new System.Drawing.Size(1028, 609);
+ this.Controls.Add(this.textBox2);
+ this.Controls.Add(this.textBox1);
+ this.Controls.Add(this.flowLayoutPanel3);
+ this.Controls.Add(this.lblfecha);
+ this.Controls.Add(this.lblhora);
+ this.Controls.Add(this.flowLayoutPanel2);
this.Controls.Add(this.flowLayoutPanel1);
+ this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "vender";
this.Text = "vender";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.vender_Load);
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.flowLayoutPanel2.ResumeLayout(false);
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit();
this.flowLayoutPanel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).EndInit();
this.ResumeLayout(false);
+ this.PerformLayout();
}
@@ -629,44 +315,17 @@
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Button button7;
- private System.Windows.Forms.Button button6;
- private System.Windows.Forms.Label label16;
- private System.Windows.Forms.Label label17;
- private System.Windows.Forms.Label label18;
- private System.Windows.Forms.Button button16;
- private System.Windows.Forms.Button button17;
- private System.Windows.Forms.PictureBox pictureBox6;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Label label14;
- private System.Windows.Forms.Label label15;
- private System.Windows.Forms.Button button14;
- private System.Windows.Forms.Button button15;
- private System.Windows.Forms.PictureBox pictureBox5;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.Button button12;
- private System.Windows.Forms.Button button13;
- private System.Windows.Forms.PictureBox pictureBox4;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.Button button10;
- private System.Windows.Forms.Button button11;
- private System.Windows.Forms.PictureBox pictureBox3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Button button8;
- private System.Windows.Forms.Button button9;
- private System.Windows.Forms.PictureBox pictureBox2;
private System.ComponentModel.BackgroundWorker backgroundWorker1;
- private System.Windows.Forms.PictureBox pictureBox8;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.PictureBox pictureBox9;
+ private System.Windows.Forms.Timer horafecha;
+ private System.Windows.Forms.Label lblfecha;
+ private System.Windows.Forms.Label lblhora;
+ private System.Windows.Forms.Timer timer1;
+ private System.Windows.Forms.Timer timer2;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3;
+ private System.Windows.Forms.TextBox textBox1;
+ private System.Windows.Forms.TextBox textBox2;
}
}
\ No newline at end of file
diff --git a/vender.cs b/vender.cs
index 494299b..0cf707a 100644
--- a/vender.cs
+++ b/vender.cs
@@ -1,25 +1,178 @@
-using System;
+using compabetov2.database;
+using compabetov2.database.modelos;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
+using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using System.Windows.Forms.VisualStyles;
namespace compabetov2
{
public partial class vender : Form
+
+
{
+
+ private int cantidad = 0;
+ private bool masBtnPresionado = false;
+ private bool menosBtnPresionado = false;
+ private List productos;
+ private List cartas = new List();
+ private decimal total = 0;
+
+
+
public vender()
{
InitializeComponent();
+ getData();
+ llenarLayout();
+ }
+
+ private void llenarLayout()
+ {
+ foreach (Producto producto in productos)
+ {
+
+ TableLayoutPanel carta = new TableLayoutPanel();
+ carta.ColumnCount = 1;
+ carta.RowCount = 2;
+
+ carta.RowStyles.Add(new RowStyle(SizeType.Percent, 80F));
+ carta.RowStyles.Add(new RowStyle(SizeType.Percent, 20F));
+
+ carta.Width = 200;
+ carta.Height = 300;
+
+ PictureBox pic = new PictureBox();
+ pic.Dock = DockStyle.Fill;
+ pic.SizeMode = PictureBoxSizeMode.Zoom;
+ pic.Image = Properties.Resources.Modelo;
+ pic.BackgroundImageLayout = ImageLayout.Stretch;
+ pic.Tag = producto.idProducto;
+
+ Label id = new Label();
+ id.Text = producto.idProducto.ToString();
+ id.BackColor = Color.FromArgb(82, 82, 82);
+ id.ForeColor = Color.White;
+ id.Width = 20;
+ id.Font = new Font(id.Font, FontStyle.Bold);
+ id.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ pic.Controls.Add(id);
+
+ Label precio = new Label();
+ precio.Text = "$5";// + producto.precion.ToString();
+ precio.BackColor = Color.FromArgb(82, 82, 82);
+ precio.ForeColor = Color.White;
+ precio.Width = 40;
+ precio.Font = new Font(id.Font, FontStyle.Bold);
+ precio.Dock = DockStyle.Bottom;
+ pic.Controls.Add(precio);
+
+ TableLayoutPanel HUD = new TableLayoutPanel();
+ HUD.ColumnCount = 3;
+ HUD.RowCount = 1;
+ HUD.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
+ HUD.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
+ HUD.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
+
+ Label contador = new Label();
+ contador.Text = "0";
+ contador.Dock = DockStyle.Fill;
+ contador.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ contador.Font = new Font(contador.Font.FontFamily, 30);
+
+ Button btnMenos = new Button();
+ btnMenos.Text = "-";
+ btnMenos.Width = 25;
+ btnMenos.Height = 25;
+ btnMenos.Font = new Font(btnMenos.Font.FontFamily, 30);
+ btnMenos.ForeColor = Color.White;
+ btnMenos.Dock = DockStyle.Fill;
+ btnMenos.FlatStyle = FlatStyle.Flat;
+ btnMenos.FlatAppearance.BorderSize = 0;
+ btnMenos.BackColor = Color.FromArgb(33, 90, 255);
+ btnMenos.Click += new EventHandler(delegate (object sender, EventArgs e)
+ {
+ int numeroContador = int.Parse(contador.Text.ToString());
+ contador.Text = (numeroContador - 1).ToString();
+ total -= producto.precion;
+ });
+
+
+
+ Button btnMas = new Button();
+ btnMas.Text = "+";
+ btnMas.Width = 25;
+ btnMas.Height = 25;
+ btnMas.Dock = DockStyle.Fill;
+ btnMas.Font = new Font(btnMas.Font.FontFamily, 30);
+ btnMas.ForeColor = Color.White;
+ btnMas.BackColor = Color.FromArgb(33, 90, 255);
+ btnMas.FlatStyle = FlatStyle.Flat;
+ btnMas.FlatAppearance.BorderSize = 0;
+ btnMas.Click += new EventHandler(delegate (object sender, EventArgs e)
+ {
+ int numeroContador = int.Parse(contador.Text.ToString());
+ contador.Text = (numeroContador + 1).ToString();
+ total += producto.precion;
+ });
+
+ HUD.Controls.Add(btnMenos);
+ HUD.Controls.Add(contador);
+ HUD.Controls.Add(btnMas);
+
+ carta.Controls.Add(pic, 0, 0);
+ carta.Controls.Add(HUD, 0, 1);
+ cartas.Add(carta);
+ flowLayoutPanel3.Controls.Add(carta);
+ }
+ }
+
+ private void getData()
+ {
+ this.productos = service.conseguirProductos();
}
private void vender_Load(object sender, EventArgs e)
{
}
+
+ private void lblhora_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void lblfecha_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void horafecha_Tick(object sender, EventArgs e)
+ {
+ lblhora.Text = DateTime.Now.ToString("h:mm:ss");
+ lblfecha.Text = DateTime.Now.ToLongDateString();
+ }
+
+ private void cervezasgb_Enter(object sender, EventArgs e)
+ {
+
+ }
+
+ private void flowLayoutPanel3_Paint(object sender, PaintEventArgs e)
+ {
+
+ }
+
+
}
}
+
+
diff --git a/vender.resx b/vender.resx
index 59099f2..34aa1e9 100644
--- a/vender.resx
+++ b/vender.resx
@@ -120,4 +120,13 @@
17, 17
+
+ 143, 17
+
+
+ 269, 17
+
+
+ 372, 17
+
\ No newline at end of file