From a68fd60b01e0359b36cddf6e7561ea50a30e0d8e Mon Sep 17 00:00:00 2001 From: Michael Robles Date: Thu, 4 Jan 2024 20:38:13 -0700 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MenuPrincipal.Designer.cs | 31 ++++++++++++++++++ MenuPrincipal.cs | 12 +++++++ login.cs | 8 +++++ ...compabetov2.csproj.AssemblyReference.cache | Bin 12901 -> 12336 bytes 4 files changed, 51 insertions(+) diff --git a/MenuPrincipal.Designer.cs b/MenuPrincipal.Designer.cs index 910b70d..08c4fdf 100644 --- a/MenuPrincipal.Designer.cs +++ b/MenuPrincipal.Designer.cs @@ -47,6 +47,8 @@ this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.horafecha = new System.Windows.Forms.Timer(this.components); + this.label1 = new System.Windows.Forms.Label(); + this.usuariolabel = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.flowLayoutPanel1.SuspendLayout(); this.panel2.SuspendLayout(); @@ -62,6 +64,8 @@ // panel1 // this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.panel1.Controls.Add(this.usuariolabel); + this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.lblfecha); this.panel1.Controls.Add(this.lblhora); this.panel1.Controls.Add(this.flowLayoutPanel1); @@ -293,6 +297,31 @@ this.horafecha.Enabled = true; this.horafecha.Tick += new System.EventHandler(this.horafecha_Tick); // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Poppins SemiBold", 15F); + this.label1.ForeColor = System.Drawing.Color.Navy; + this.label1.Location = new System.Drawing.Point(1723, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(161, 44); + this.label1.TabIndex = 10; + this.label1.Text = "Bienvenido"; + this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter; + this.label1.Click += new System.EventHandler(this.label1_Click); + // + // usuariolabel + // + this.usuariolabel.AutoSize = true; + this.usuariolabel.Font = new System.Drawing.Font("Poppins SemiBold", 10F); + this.usuariolabel.ForeColor = System.Drawing.Color.Navy; + this.usuariolabel.Location = new System.Drawing.Point(1761, 43); + this.usuariolabel.Name = "usuariolabel"; + this.usuariolabel.Size = new System.Drawing.Size(71, 30); + this.usuariolabel.TabIndex = 11; + this.usuariolabel.Text = "Admin"; + this.usuariolabel.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // // MenuPrincipal // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); @@ -339,6 +368,8 @@ private System.Windows.Forms.Label lblfecha; private System.Windows.Forms.Label lblhora; private System.Windows.Forms.Timer horafecha; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label usuariolabel; } } diff --git a/MenuPrincipal.cs b/MenuPrincipal.cs index 275a215..8104e62 100644 --- a/MenuPrincipal.cs +++ b/MenuPrincipal.cs @@ -10,7 +10,12 @@ using System.Threading.Tasks; using System.Windows.Forms; namespace compabetov2 + + { + + + public partial class MenuPrincipal : Form { private int childFormNumber = 0; @@ -20,6 +25,8 @@ namespace compabetov2 InitializeComponent(); } + + private void ShowNewForm(object sender, EventArgs e) { Form childForm = new Form(); @@ -125,5 +132,10 @@ namespace compabetov2 this.Dispose(true); } + + private void label1_Click(object sender, EventArgs e) + { + + } } } diff --git a/login.cs b/login.cs index 4ed11b8..6db4783 100644 --- a/login.cs +++ b/login.cs @@ -14,6 +14,12 @@ namespace compabetov2 { public partial class login : Form { + + + + + + public login() { InitializeComponent(); @@ -63,6 +69,8 @@ namespace compabetov2 MenuPrincipal principal = new MenuPrincipal(); principal.Show(); + + this.Hide(); diff --git a/obj/Debug/compabetov2.csproj.AssemblyReference.cache b/obj/Debug/compabetov2.csproj.AssemblyReference.cache index 1367df03cf12580b7d77b021506427625f34e67b..314837de29e3a0e8df555155c93afe5db745f694 100644 GIT binary patch delta 21 ccmaEwvLS(kjZuh!fq^k`@