diff --git a/.vs/compabetov2/FileContentIndex/dca9b8fa-9339-4262-9dfa-2b74adbe8193.vsidx b/.vs/compabetov2/FileContentIndex/30a0ce11-533d-40aa-bed4-354ad3d53dd0.vsidx similarity index 99% rename from .vs/compabetov2/FileContentIndex/dca9b8fa-9339-4262-9dfa-2b74adbe8193.vsidx rename to .vs/compabetov2/FileContentIndex/30a0ce11-533d-40aa-bed4-354ad3d53dd0.vsidx index fa3393d..519a732 100644 Binary files a/.vs/compabetov2/FileContentIndex/dca9b8fa-9339-4262-9dfa-2b74adbe8193.vsidx and b/.vs/compabetov2/FileContentIndex/30a0ce11-533d-40aa-bed4-354ad3d53dd0.vsidx differ diff --git a/.vs/compabetov2/FileContentIndex/55db06bc-aef9-4fb0-91a8-5f72c5126744.vsidx b/.vs/compabetov2/FileContentIndex/55db06bc-aef9-4fb0-91a8-5f72c5126744.vsidx deleted file mode 100644 index bf0d8c2..0000000 Binary files a/.vs/compabetov2/FileContentIndex/55db06bc-aef9-4fb0-91a8-5f72c5126744.vsidx and /dev/null differ diff --git a/.vs/compabetov2/FileContentIndex/768591be-0c20-4239-8cc2-c463e9f13870.vsidx b/.vs/compabetov2/FileContentIndex/768591be-0c20-4239-8cc2-c463e9f13870.vsidx new file mode 100644 index 0000000..c307bd8 Binary files /dev/null and b/.vs/compabetov2/FileContentIndex/768591be-0c20-4239-8cc2-c463e9f13870.vsidx differ diff --git a/.vs/compabetov2/FileContentIndex/5468d83c-a1a7-41ca-b5eb-48dd067c4d17.vsidx b/.vs/compabetov2/FileContentIndex/9aa8d175-2f9e-4c34-a24d-d53ac71ac2ed.vsidx similarity index 99% rename from .vs/compabetov2/FileContentIndex/5468d83c-a1a7-41ca-b5eb-48dd067c4d17.vsidx rename to .vs/compabetov2/FileContentIndex/9aa8d175-2f9e-4c34-a24d-d53ac71ac2ed.vsidx index 9dab5fc..24f4358 100644 Binary files a/.vs/compabetov2/FileContentIndex/5468d83c-a1a7-41ca-b5eb-48dd067c4d17.vsidx and b/.vs/compabetov2/FileContentIndex/9aa8d175-2f9e-4c34-a24d-d53ac71ac2ed.vsidx differ diff --git a/.vs/compabetov2/FileContentIndex/b26167ba-90e8-4c6e-b5e1-1fc71c10bd7c.vsidx b/.vs/compabetov2/FileContentIndex/b26167ba-90e8-4c6e-b5e1-1fc71c10bd7c.vsidx new file mode 100644 index 0000000..6707b03 Binary files /dev/null and b/.vs/compabetov2/FileContentIndex/b26167ba-90e8-4c6e-b5e1-1fc71c10bd7c.vsidx differ diff --git a/.vs/compabetov2/FileContentIndex/c318c07a-2735-4fb0-93d7-a4ab72ab25f6.vsidx b/.vs/compabetov2/FileContentIndex/c318c07a-2735-4fb0-93d7-a4ab72ab25f6.vsidx deleted file mode 100644 index 99d315a..0000000 Binary files a/.vs/compabetov2/FileContentIndex/c318c07a-2735-4fb0-93d7-a4ab72ab25f6.vsidx and /dev/null differ diff --git a/.vs/compabetov2/v17/.suo b/.vs/compabetov2/v17/.suo index cae1ec0..4bb672c 100644 Binary files a/.vs/compabetov2/v17/.suo and b/.vs/compabetov2/v17/.suo differ diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 30fd85e..c721a28 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -30,8 +30,8 @@ { this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.textBox2 = new System.Windows.Forms.TextBox(); + this.txtusuario = new System.Windows.Forms.TextBox(); + this.txtcontraseña = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); @@ -65,24 +65,25 @@ this.pictureBox2.TabIndex = 1; this.pictureBox2.TabStop = false; // - // textBox1 + // txtusuario // - this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox1.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold); - this.textBox1.Location = new System.Drawing.Point(1241, 451); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(542, 60); - this.textBox1.TabIndex = 2; + 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(1241, 451); + this.txtusuario.Name = "txtusuario"; + this.txtusuario.Size = new System.Drawing.Size(542, 60); + this.txtusuario.TabIndex = 2; + this.txtusuario.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // - // textBox2 + // txtcontraseña // - this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox2.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold); - this.textBox2.Location = new System.Drawing.Point(1239, 688); - this.textBox2.Name = "textBox2"; - this.textBox2.PasswordChar = '*'; - this.textBox2.Size = new System.Drawing.Size(542, 60); - this.textBox2.TabIndex = 3; + 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(1239, 688); + this.txtcontraseña.Name = "txtcontraseña"; + this.txtcontraseña.PasswordChar = '*'; + this.txtcontraseña.Size = new System.Drawing.Size(542, 60); + this.txtcontraseña.TabIndex = 3; // // label1 // @@ -171,8 +172,8 @@ this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); - this.Controls.Add(this.textBox2); - this.Controls.Add(this.textBox1); + this.Controls.Add(this.txtcontraseña); + this.Controls.Add(this.txtusuario); this.Controls.Add(this.pictureBox2); this.Controls.Add(this.pictureBox1); this.DoubleBuffered = true; @@ -195,8 +196,8 @@ private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox2; - private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox txtusuario; + private System.Windows.Forms.TextBox txtcontraseña; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; diff --git a/Form1.cs b/Form1.cs index d8c4572..eb9219c 100644 --- a/Form1.cs +++ b/Form1.cs @@ -7,6 +7,8 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.Data.SQLite; + namespace compabetov2 { @@ -39,12 +41,30 @@ namespace compabetov2 private void button1_Click(object sender, EventArgs e) { - - MenuPrincipal menu = new MenuPrincipal(); - menu.Show(); + if (txtusuario.Text.Trim() == "" && txtcontraseña.Text.Trim() == "") + { + + MessageBox.Show("ERROR TODO VACIO"); + } + else + { + + string query = "SELECT * FROM login WHERE "; + SQLiteConnection conn + + } + + + + } + + private void textBox1_TextChanged(object sender, EventArgs e) + { + } } -} + } + diff --git a/MenuPrincipal.Designer.cs b/MenuPrincipal.Designer.cs index 2d5cb0b..42015a0 100644 --- a/MenuPrincipal.Designer.cs +++ b/MenuPrincipal.Designer.cs @@ -29,7 +29,18 @@ private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); - this.button1 = new System.Windows.Forms.Button(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.pictureBox2 = new System.Windows.Forms.PictureBox(); + this.pictureBox3 = new System.Windows.Forms.PictureBox(); + this.pictureBox4 = new System.Windows.Forms.PictureBox(); + this.pictureBox5 = new System.Windows.Forms.PictureBox(); + this.pictureBox6 = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).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(); this.SuspendLayout(); // // panel1 @@ -41,16 +52,65 @@ this.panel1.Size = new System.Drawing.Size(347, 1069); this.panel1.TabIndex = 0; // - // button1 + // pictureBox1 // - this.button1.BackgroundImage = global::compabetov2.Properties.Resources.cua1; - this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.button1.Location = new System.Drawing.Point(554, 146); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(332, 306); - this.button1.TabIndex = 1; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; + this.pictureBox1.Image = global::compabetov2.Properties.Resources.cua1; + this.pictureBox1.Location = new System.Drawing.Point(448, 174); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(327, 308); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 1; + this.pictureBox1.TabStop = false; + // + // pictureBox2 + // + this.pictureBox2.Image = global::compabetov2.Properties.Resources.cua1; + this.pictureBox2.Location = new System.Drawing.Point(933, 174); + this.pictureBox2.Name = "pictureBox2"; + this.pictureBox2.Size = new System.Drawing.Size(327, 308); + this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox2.TabIndex = 2; + this.pictureBox2.TabStop = false; + // + // pictureBox3 + // + this.pictureBox3.Image = global::compabetov2.Properties.Resources.cua1; + this.pictureBox3.Location = new System.Drawing.Point(1408, 174); + this.pictureBox3.Name = "pictureBox3"; + this.pictureBox3.Size = new System.Drawing.Size(327, 308); + this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox3.TabIndex = 3; + this.pictureBox3.TabStop = false; + // + // pictureBox4 + // + this.pictureBox4.Image = global::compabetov2.Properties.Resources.cua1; + this.pictureBox4.Location = new System.Drawing.Point(1408, 614); + this.pictureBox4.Name = "pictureBox4"; + this.pictureBox4.Size = new System.Drawing.Size(327, 308); + this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox4.TabIndex = 6; + this.pictureBox4.TabStop = false; + // + // pictureBox5 + // + this.pictureBox5.Image = global::compabetov2.Properties.Resources.cua1; + this.pictureBox5.Location = new System.Drawing.Point(933, 614); + this.pictureBox5.Name = "pictureBox5"; + this.pictureBox5.Size = new System.Drawing.Size(327, 308); + this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox5.TabIndex = 5; + this.pictureBox5.TabStop = false; + // + // pictureBox6 + // + this.pictureBox6.Image = global::compabetov2.Properties.Resources.cua1; + this.pictureBox6.Location = new System.Drawing.Point(448, 614); + this.pictureBox6.Name = "pictureBox6"; + this.pictureBox6.Size = new System.Drawing.Size(327, 308); + this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox6.TabIndex = 4; + this.pictureBox6.TabStop = false; // // MenuPrincipal // @@ -59,11 +119,22 @@ this.BackColor = System.Drawing.SystemColors.Window; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.ClientSize = new System.Drawing.Size(1924, 1055); - this.Controls.Add(this.button1); + this.Controls.Add(this.pictureBox4); + this.Controls.Add(this.pictureBox5); + this.Controls.Add(this.pictureBox6); + this.Controls.Add(this.pictureBox3); + this.Controls.Add(this.pictureBox2); + this.Controls.Add(this.pictureBox1); this.Controls.Add(this.panel1); this.Name = "MenuPrincipal"; this.Text = "MenuPrincipal"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).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(); this.ResumeLayout(false); } @@ -71,6 +142,11 @@ #endregion private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Button button1; + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.PictureBox pictureBox2; + private System.Windows.Forms.PictureBox pictureBox3; + private System.Windows.Forms.PictureBox pictureBox4; + private System.Windows.Forms.PictureBox pictureBox5; + private System.Windows.Forms.PictureBox pictureBox6; } } \ No newline at end of file diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index 0bedd6b..c8fb625 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 187b512..776aad6 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache index ffe7675..bebd627 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 0bedd6b..c8fb625 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 187b512..776aad6 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ