From ad6d3b58d6266446bb17fd379301ad308e20c8af Mon Sep 17 00:00:00 2001 From: Michael Robles Date: Thu, 28 Dec 2023 16:55:54 -0700 Subject: [PATCH] Clicks --- MenuPrincipal.Designer.cs | 1 + MenuPrincipal.cs | 9 +++ compabetov2.csproj | 9 +++ envios.Designer.cs | 156 +++++++++++++++++++++++++++++++++++++- 4 files changed, 173 insertions(+), 2 deletions(-) diff --git a/MenuPrincipal.Designer.cs b/MenuPrincipal.Designer.cs index 2c4675f..d500270 100644 --- a/MenuPrincipal.Designer.cs +++ b/MenuPrincipal.Designer.cs @@ -281,6 +281,7 @@ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 1; this.pictureBox1.TabStop = false; + this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // // horafecha // diff --git a/MenuPrincipal.cs b/MenuPrincipal.cs index 1d5375a..d7374ff 100644 --- a/MenuPrincipal.cs +++ b/MenuPrincipal.cs @@ -77,5 +77,14 @@ namespace compabetov2 { } + + private void pictureBox1_Click(object sender, EventArgs e) + { + personal personal = new personal(); + + personal.Show(); + this.Dispose(true); + + } } } diff --git a/compabetov2.csproj b/compabetov2.csproj index 9622adf..d900e9f 100644 --- a/compabetov2.csproj +++ b/compabetov2.csproj @@ -115,6 +115,12 @@ + + Form + + + envios.cs + Form @@ -156,6 +162,9 @@ cuentas.cs + + envios.cs + inventario.cs diff --git a/envios.Designer.cs b/envios.Designer.cs index 31ee23f..3975f3a 100644 --- a/envios.Designer.cs +++ b/envios.Designer.cs @@ -28,12 +28,164 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.pictureBox7 = new System.Windows.Forms.PictureBox(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.button5 = new System.Windows.Forms.Button(); + this.flowLayoutPanel1.SuspendLayout(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); + this.SuspendLayout(); + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.BackgroundImage = global::compabetov2.Properties.Resources.rec; + this.flowLayoutPanel1.Controls.Add(this.panel2); + this.flowLayoutPanel1.Controls.Add(this.button1); + this.flowLayoutPanel1.Controls.Add(this.button2); + this.flowLayoutPanel1.Controls.Add(this.button3); + this.flowLayoutPanel1.Controls.Add(this.button4); + this.flowLayoutPanel1.Controls.Add(this.button5); + this.flowLayoutPanel1.Location = new System.Drawing.Point(-1, 0); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061); + this.flowLayoutPanel1.TabIndex = 9; + // + // 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.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(312, 263); + this.panel2.TabIndex = 8; + // + // pictureBox7 + // + this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu; + this.pictureBox7.Location = new System.Drawing.Point(64, 35); + this.pictureBox7.Name = "pictureBox7"; + this.pictureBox7.Size = new System.Drawing.Size(190, 197); + this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBox7.TabIndex = 8; + this.pictureBox7.TabStop = false; + // + // button1 + // + 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.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.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.TabIndex = 8; + this.button1.Text = "MenĂº"; + this.button1.UseVisualStyleBackColor = false; + // + // button2 + // + 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.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.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.TabIndex = 9; + this.button2.Text = "Estadisticas"; + this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.button2.UseVisualStyleBackColor = false; + // + // button3 + // + 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.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.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.TabIndex = 10; + this.button3.Text = "Productos"; + this.button3.UseVisualStyleBackColor = false; + // + // button4 + // + 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.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.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.TabIndex = 11; + this.button4.Text = "Reportes"; + this.button4.UseVisualStyleBackColor = false; + // + // button5 + // + 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.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.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.TabIndex = 12; + this.button5.Text = "Salir"; + this.button5.UseVisualStyleBackColor = false; + // + // envios + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); + this.ClientSize = new System.Drawing.Size(1924, 1055); + this.Controls.Add(this.flowLayoutPanel1); + this.Name = "envios"; this.Text = "envios"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.flowLayoutPanel1.ResumeLayout(false); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); + this.ResumeLayout(false); + } #endregion + + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.PictureBox pictureBox7; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.Button button5; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; } } \ No newline at end of file