This commit is contained in:
Michael Robles
2023-12-21 17:27:42 -07:00
parent e0b45e1b28
commit 3341e5107e
15 changed files with 134 additions and 37 deletions
Binary file not shown.
+22 -21
View File
@@ -30,8 +30,8 @@
{ {
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.textBox1 = new System.Windows.Forms.TextBox(); this.txtusuario = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox(); this.txtcontraseña = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
@@ -65,24 +65,25 @@
this.pictureBox2.TabIndex = 1; this.pictureBox2.TabIndex = 1;
this.pictureBox2.TabStop = false; this.pictureBox2.TabStop = false;
// //
// textBox1 // txtusuario
// //
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.txtusuario.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox1.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold); this.txtusuario.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold);
this.textBox1.Location = new System.Drawing.Point(1241, 451); this.txtusuario.Location = new System.Drawing.Point(1241, 451);
this.textBox1.Name = "textBox1"; this.txtusuario.Name = "txtusuario";
this.textBox1.Size = new System.Drawing.Size(542, 60); this.txtusuario.Size = new System.Drawing.Size(542, 60);
this.textBox1.TabIndex = 2; 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.txtcontraseña.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox2.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold); this.txtcontraseña.Font = new System.Drawing.Font("Poppins SemiBold", 24F, System.Drawing.FontStyle.Bold);
this.textBox2.Location = new System.Drawing.Point(1239, 688); this.txtcontraseña.Location = new System.Drawing.Point(1239, 688);
this.textBox2.Name = "textBox2"; this.txtcontraseña.Name = "txtcontraseña";
this.textBox2.PasswordChar = '*'; this.txtcontraseña.PasswordChar = '*';
this.textBox2.Size = new System.Drawing.Size(542, 60); this.txtcontraseña.Size = new System.Drawing.Size(542, 60);
this.textBox2.TabIndex = 3; this.txtcontraseña.TabIndex = 3;
// //
// label1 // label1
// //
@@ -171,8 +172,8 @@
this.Controls.Add(this.label3); this.Controls.Add(this.label3);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.textBox2); this.Controls.Add(this.txtcontraseña);
this.Controls.Add(this.textBox1); this.Controls.Add(this.txtusuario);
this.Controls.Add(this.pictureBox2); this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1); this.Controls.Add(this.pictureBox1);
this.DoubleBuffered = true; this.DoubleBuffered = true;
@@ -195,8 +196,8 @@
private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2; private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox txtusuario;
private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.TextBox txtcontraseña;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
+22 -2
View File
@@ -7,6 +7,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.Data.SQLite;
namespace compabetov2 namespace compabetov2
{ {
@@ -40,11 +42,29 @@ namespace compabetov2
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
if (txtusuario.Text.Trim() == "" && txtcontraseña.Text.Trim() == "")
{
MenuPrincipal menu = new MenuPrincipal(); MessageBox.Show("ERROR TODO VACIO");
menu.Show(); }
else
{
string query = "SELECT * FROM login WHERE ";
SQLiteConnection conn
}
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
} }
} }
} }
+88 -12
View File
@@ -29,7 +29,18 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.panel1 = new System.Windows.Forms.Panel(); 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(); this.SuspendLayout();
// //
// panel1 // panel1
@@ -41,16 +52,65 @@
this.panel1.Size = new System.Drawing.Size(347, 1069); this.panel1.Size = new System.Drawing.Size(347, 1069);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// button1 // pictureBox1
// //
this.button1.BackgroundImage = global::compabetov2.Properties.Resources.cua1; this.pictureBox1.Image = global::compabetov2.Properties.Resources.cua1;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pictureBox1.Location = new System.Drawing.Point(448, 174);
this.button1.Location = new System.Drawing.Point(554, 146); this.pictureBox1.Name = "pictureBox1";
this.button1.Name = "button1"; this.pictureBox1.Size = new System.Drawing.Size(327, 308);
this.button1.Size = new System.Drawing.Size(332, 306); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.button1.TabIndex = 1; this.pictureBox1.TabIndex = 1;
this.button1.Text = "button1"; this.pictureBox1.TabStop = false;
this.button1.UseVisualStyleBackColor = true; //
// 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 // MenuPrincipal
// //
@@ -59,11 +119,22 @@
this.BackColor = System.Drawing.SystemColors.Window; this.BackColor = System.Drawing.SystemColors.Window;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(1924, 1055); 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.Controls.Add(this.panel1);
this.Name = "MenuPrincipal"; this.Name = "MenuPrincipal";
this.Text = "MenuPrincipal"; this.Text = "MenuPrincipal";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; 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); this.ResumeLayout(false);
} }
@@ -71,6 +142,11 @@
#endregion #endregion
private System.Windows.Forms.Panel panel1; 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;
} }
} }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.