Cada vez más cercas del final

This commit is contained in:
Michael Robles
2024-01-08 14:55:34 -07:00
parent 6c31379042
commit 9303edc799
19 changed files with 303 additions and 205 deletions
+28 -27
View File
@@ -30,6 +30,8 @@
{
this.components = new System.ComponentModel.Container();
this.panel1 = new System.Windows.Forms.Panel();
this.usuariolabel = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.lblfecha = new System.Windows.Forms.Label();
this.lblhora = new System.Windows.Forms.Label();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
@@ -47,8 +49,6 @@
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();
@@ -81,6 +81,31 @@
this.panel1.Size = new System.Drawing.Size(1924, 1055);
this.panel1.TabIndex = 4;
//
// 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;
//
// 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);
//
// lblfecha
//
this.lblfecha.AutoSize = true;
@@ -155,6 +180,7 @@
this.button1.TabIndex = 8;
this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
@@ -297,31 +323,6 @@
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);
+5
View File
@@ -137,5 +137,10 @@ namespace compabetov2
{
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
Binary file not shown.
Binary file not shown.
+1
View File
@@ -85,6 +85,7 @@
this.button1.TabIndex = 8;
this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
+7
View File
@@ -16,5 +16,12 @@ namespace compabetov2
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MenuPrincipal menuPrincipal = new MenuPrincipal();
menuPrincipal.Show();
this.Dispose(true);
}
}
}
+42
View File
@@ -28,6 +28,7 @@
/// </summary>
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();
@@ -58,6 +59,11 @@
this.button8 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.horafecha = new System.Windows.Forms.Timer(this.components);
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.timer2 = new System.Windows.Forms.Timer(this.components);
this.lblfecha = new System.Windows.Forms.Label();
this.lblhora = new System.Windows.Forms.Label();
this.flowLayoutPanel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
@@ -112,6 +118,7 @@
this.button1.TabIndex = 8;
this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
@@ -406,11 +413,41 @@
this.button6.Text = "Agregar";
this.button6.UseVisualStyleBackColor = true;
//
// horafecha
//
this.horafecha.Enabled = true;
this.horafecha.Tick += new System.EventHandler(this.horafecha_Tick);
//
// lblfecha
//
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(725, 142);
this.lblfecha.Name = "lblfecha";
this.lblfecha.Size = new System.Drawing.Size(159, 58);
this.lblfecha.TabIndex = 54;
this.lblfecha.Text = "label2";
this.lblfecha.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// 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(913, 23);
this.lblhora.Name = "lblhora";
this.lblhora.Size = new System.Drawing.Size(318, 113);
this.lblhora.TabIndex = 53;
this.lblhora.Text = "label1";
//
// envios
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1924, 1055);
this.Controls.Add(this.lblfecha);
this.Controls.Add(this.lblhora);
this.Controls.Add(this.button9);
this.Controls.Add(this.button8);
this.Controls.Add(this.button7);
@@ -478,5 +515,10 @@
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Timer horafecha;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.Label lblfecha;
private System.Windows.Forms.Label lblhora;
}
}
+15
View File
@@ -16,5 +16,20 @@ namespace compabetov2
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MenuPrincipal menuPrincipal = new MenuPrincipal();
menuPrincipal.Show();
this.Dispose(true);
}
private void horafecha_Tick(object sender, EventArgs e)
{
lblhora.Text = DateTime.Now.ToString("h:mm:ss");
lblfecha.Text = DateTime.Now.ToLongDateString();
}
}
}
+9
View File
@@ -117,4 +117,13 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="horafecha.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>475, 17</value>
</metadata>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>601, 17</value>
</metadata>
<metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>704, 17</value>
</metadata>
</root>
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
424f6d4f8bcbc47e89c98d2fa689cb77dffd9f6b5116717e9e8dca5ece3777d7
953cb31f9b6e74dde952aba09707a9add648ded1
Binary file not shown.
Binary file not shown.
Binary file not shown.
+110 -120
View File
@@ -93,8 +93,8 @@
// pictureBox7
//
this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu;
this.pictureBox7.Location = new System.Drawing.Point(48, 28);
this.pictureBox7.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox7.Location = new System.Drawing.Point(64, 34);
this.pictureBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(190, 197);
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -105,10 +105,10 @@
//
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.Controls.Add(this.pictureBox7);
this.panel2.Location = new System.Drawing.Point(2, 2);
this.panel2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.panel2.Location = new System.Drawing.Point(3, 2);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(234, 214);
this.panel2.Size = new System.Drawing.Size(312, 263);
this.panel2.TabIndex = 8;
//
// button1
@@ -120,14 +120,15 @@
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(2, 220);
this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button1.Location = new System.Drawing.Point(3, 269);
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button1.Name = "button1";
this.button1.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button1.Size = new System.Drawing.Size(234, 93);
this.button1.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button1.Size = new System.Drawing.Size(312, 114);
this.button1.TabIndex = 8;
this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
@@ -138,11 +139,11 @@
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(2, 317);
this.button2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button2.Location = new System.Drawing.Point(3, 387);
this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button2.Name = "button2";
this.button2.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button2.Size = new System.Drawing.Size(234, 93);
this.button2.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button2.Size = new System.Drawing.Size(312, 114);
this.button2.TabIndex = 9;
this.button2.Text = "Estadisticas";
this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -157,11 +158,11 @@
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(2, 414);
this.button3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button3.Location = new System.Drawing.Point(3, 505);
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button3.Name = "button3";
this.button3.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button3.Size = new System.Drawing.Size(234, 93);
this.button3.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button3.Size = new System.Drawing.Size(312, 114);
this.button3.TabIndex = 10;
this.button3.Text = "Productos";
this.button3.UseVisualStyleBackColor = false;
@@ -175,11 +176,11 @@
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(2, 511);
this.button4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button4.Location = new System.Drawing.Point(3, 623);
this.button4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button4.Name = "button4";
this.button4.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button4.Size = new System.Drawing.Size(234, 93);
this.button4.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button4.Size = new System.Drawing.Size(312, 114);
this.button4.TabIndex = 11;
this.button4.Text = "Reportes";
this.button4.UseVisualStyleBackColor = false;
@@ -193,11 +194,11 @@
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(2, 608);
this.button5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button5.Location = new System.Drawing.Point(3, 741);
this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button5.Name = "button5";
this.button5.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button5.Size = new System.Drawing.Size(234, 93);
this.button5.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button5.Size = new System.Drawing.Size(312, 114);
this.button5.TabIndex = 12;
this.button5.Text = "Salir";
this.button5.UseVisualStyleBackColor = false;
@@ -211,91 +212,91 @@
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(-2, -2);
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.flowLayoutPanel1.Location = new System.Drawing.Point(-3, -2);
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(243, 862);
this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061);
this.flowLayoutPanel1.TabIndex = 8;
//
// txtnombrepersonal
//
this.txtnombrepersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtnombrepersonal.Location = new System.Drawing.Point(370, 282);
this.txtnombrepersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtnombrepersonal.Location = new System.Drawing.Point(493, 347);
this.txtnombrepersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtnombrepersonal.Name = "txtnombrepersonal";
this.txtnombrepersonal.Size = new System.Drawing.Size(225, 45);
this.txtnombrepersonal.Size = new System.Drawing.Size(299, 55);
this.txtnombrepersonal.TabIndex = 13;
//
// txtapellidopersonal
//
this.txtapellidopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtapellidopersonal.Location = new System.Drawing.Point(614, 282);
this.txtapellidopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtapellidopersonal.Location = new System.Drawing.Point(819, 347);
this.txtapellidopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtapellidopersonal.Name = "txtapellidopersonal";
this.txtapellidopersonal.Size = new System.Drawing.Size(225, 45);
this.txtapellidopersonal.Size = new System.Drawing.Size(299, 55);
this.txtapellidopersonal.TabIndex = 14;
//
// txtnointpersonal
//
this.txtnointpersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtnointpersonal.Location = new System.Drawing.Point(370, 465);
this.txtnointpersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtnointpersonal.Location = new System.Drawing.Point(493, 572);
this.txtnointpersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtnointpersonal.Name = "txtnointpersonal";
this.txtnointpersonal.Size = new System.Drawing.Size(225, 45);
this.txtnointpersonal.Size = new System.Drawing.Size(299, 55);
this.txtnointpersonal.TabIndex = 20;
//
// txtnoextpersonal
//
this.txtnoextpersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtnoextpersonal.Location = new System.Drawing.Point(1098, 367);
this.txtnoextpersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtnoextpersonal.Location = new System.Drawing.Point(1464, 452);
this.txtnoextpersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtnoextpersonal.Name = "txtnoextpersonal";
this.txtnoextpersonal.Size = new System.Drawing.Size(225, 45);
this.txtnoextpersonal.Size = new System.Drawing.Size(299, 55);
this.txtnoextpersonal.TabIndex = 19;
//
// txtcodigopersonal
//
this.txtcodigopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtcodigopersonal.Location = new System.Drawing.Point(856, 367);
this.txtcodigopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtcodigopersonal.Location = new System.Drawing.Point(1141, 452);
this.txtcodigopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtcodigopersonal.Name = "txtcodigopersonal";
this.txtcodigopersonal.Size = new System.Drawing.Size(225, 45);
this.txtcodigopersonal.Size = new System.Drawing.Size(299, 55);
this.txtcodigopersonal.TabIndex = 18;
//
// txtcoloniapersonal
//
this.txtcoloniapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtcoloniapersonal.Location = new System.Drawing.Point(612, 367);
this.txtcoloniapersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtcoloniapersonal.Location = new System.Drawing.Point(816, 452);
this.txtcoloniapersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtcoloniapersonal.Name = "txtcoloniapersonal";
this.txtcoloniapersonal.Size = new System.Drawing.Size(225, 45);
this.txtcoloniapersonal.Size = new System.Drawing.Size(299, 55);
this.txtcoloniapersonal.TabIndex = 17;
//
// txtcallepersonal
//
this.txtcallepersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtcallepersonal.Location = new System.Drawing.Point(856, 282);
this.txtcallepersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtcallepersonal.Location = new System.Drawing.Point(1141, 347);
this.txtcallepersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtcallepersonal.Name = "txtcallepersonal";
this.txtcallepersonal.Size = new System.Drawing.Size(225, 45);
this.txtcallepersonal.Size = new System.Drawing.Size(299, 55);
this.txtcallepersonal.TabIndex = 24;
//
// txttelefonopersonal
//
this.txttelefonopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txttelefonopersonal.Location = new System.Drawing.Point(1098, 447);
this.txttelefonopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txttelefonopersonal.Location = new System.Drawing.Point(1464, 550);
this.txttelefonopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txttelefonopersonal.Name = "txttelefonopersonal";
this.txttelefonopersonal.Size = new System.Drawing.Size(225, 45);
this.txttelefonopersonal.Size = new System.Drawing.Size(299, 55);
this.txttelefonopersonal.TabIndex = 23;
//
// txtreferenciapersonal
//
this.txtreferenciapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtreferenciapersonal.Location = new System.Drawing.Point(612, 447);
this.txtreferenciapersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtreferenciapersonal.Location = new System.Drawing.Point(816, 550);
this.txtreferenciapersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtreferenciapersonal.Name = "txtreferenciapersonal";
this.txtreferenciapersonal.Size = new System.Drawing.Size(225, 45);
this.txtreferenciapersonal.Size = new System.Drawing.Size(299, 55);
this.txtreferenciapersonal.TabIndex = 21;
//
// label1
@@ -303,10 +304,9 @@
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label1.ForeColor = System.Drawing.Color.Navy;
this.label1.Location = new System.Drawing.Point(372, 245);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Location = new System.Drawing.Point(496, 302);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(110, 31);
this.label1.Size = new System.Drawing.Size(138, 39);
this.label1.TabIndex = 25;
this.label1.Text = "Nombre";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -317,10 +317,9 @@
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label2.ForeColor = System.Drawing.Color.Navy;
this.label2.Location = new System.Drawing.Point(608, 249);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Location = new System.Drawing.Point(811, 306);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(110, 31);
this.label2.Size = new System.Drawing.Size(140, 39);
this.label2.TabIndex = 26;
this.label2.Text = "Apellido";
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -330,10 +329,9 @@
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label3.ForeColor = System.Drawing.Color.Navy;
this.label3.Location = new System.Drawing.Point(1095, 249);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Location = new System.Drawing.Point(1460, 306);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(283, 31);
this.label3.Size = new System.Drawing.Size(353, 39);
this.label3.TabIndex = 27;
this.label3.Text = "Fecha de contratación";
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -341,20 +339,20 @@
// dtpfechapersonal
//
this.dtpfechapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.dtpfechapersonal.Location = new System.Drawing.Point(1100, 292);
this.dtpfechapersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.dtpfechapersonal.Location = new System.Drawing.Point(1467, 359);
this.dtpfechapersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dtpfechapersonal.Name = "dtpfechapersonal";
this.dtpfechapersonal.Size = new System.Drawing.Size(223, 30);
this.dtpfechapersonal.Size = new System.Drawing.Size(296, 36);
this.dtpfechapersonal.TabIndex = 28;
//
// cbestadopersonal
//
this.cbestadopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 26F);
this.cbestadopersonal.FormattingEnabled = true;
this.cbestadopersonal.Location = new System.Drawing.Point(370, 367);
this.cbestadopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbestadopersonal.Location = new System.Drawing.Point(493, 452);
this.cbestadopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbestadopersonal.Name = "cbestadopersonal";
this.cbestadopersonal.Size = new System.Drawing.Size(121, 47);
this.cbestadopersonal.Size = new System.Drawing.Size(160, 59);
this.cbestadopersonal.TabIndex = 29;
//
// label4
@@ -362,10 +360,9 @@
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label4.ForeColor = System.Drawing.Color.Navy;
this.label4.Location = new System.Drawing.Point(380, 331);
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label4.Location = new System.Drawing.Point(507, 407);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(99, 31);
this.label4.Size = new System.Drawing.Size(123, 39);
this.label4.TabIndex = 30;
this.label4.Text = "Estado";
this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -375,10 +372,9 @@
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label5.ForeColor = System.Drawing.Color.Navy;
this.label5.Location = new System.Drawing.Point(614, 334);
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label5.Location = new System.Drawing.Point(819, 411);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(106, 31);
this.label5.Size = new System.Drawing.Size(134, 39);
this.label5.TabIndex = 31;
this.label5.Text = "Colonia";
this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -388,10 +384,9 @@
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label6.ForeColor = System.Drawing.Color.Navy;
this.label6.Location = new System.Drawing.Point(855, 334);
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label6.Location = new System.Drawing.Point(1140, 411);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(183, 31);
this.label6.Size = new System.Drawing.Size(230, 39);
this.label6.TabIndex = 32;
this.label6.Text = "Codigo Postal";
this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -401,10 +396,9 @@
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label7.ForeColor = System.Drawing.Color.Navy;
this.label7.Location = new System.Drawing.Point(1093, 330);
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label7.Location = new System.Drawing.Point(1457, 406);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(103, 31);
this.label7.Size = new System.Drawing.Size(128, 39);
this.label7.TabIndex = 33;
this.label7.Text = "No. Ext";
this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -414,10 +408,9 @@
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label8.ForeColor = System.Drawing.Color.Navy;
this.label8.Location = new System.Drawing.Point(364, 427);
this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label8.Location = new System.Drawing.Point(485, 526);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(95, 31);
this.label8.Size = new System.Drawing.Size(117, 39);
this.label8.TabIndex = 34;
this.label8.Text = "No. Int";
this.label8.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -427,10 +420,9 @@
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label9.ForeColor = System.Drawing.Color.Navy;
this.label9.Location = new System.Drawing.Point(614, 414);
this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label9.Location = new System.Drawing.Point(819, 510);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(146, 31);
this.label9.Size = new System.Drawing.Size(182, 39);
this.label9.TabIndex = 35;
this.label9.Text = "Referencia";
this.label9.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -438,10 +430,10 @@
// dtpnacimientopersonal
//
this.dtpnacimientopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.dtpnacimientopersonal.Location = new System.Drawing.Point(856, 455);
this.dtpnacimientopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.dtpnacimientopersonal.Location = new System.Drawing.Point(1141, 560);
this.dtpnacimientopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dtpnacimientopersonal.Name = "dtpnacimientopersonal";
this.dtpnacimientopersonal.Size = new System.Drawing.Size(223, 30);
this.dtpnacimientopersonal.Size = new System.Drawing.Size(296, 36);
this.dtpnacimientopersonal.TabIndex = 36;
//
// label10
@@ -449,10 +441,9 @@
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label10.ForeColor = System.Drawing.Color.Navy;
this.label10.Location = new System.Drawing.Point(850, 414);
this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label10.Location = new System.Drawing.Point(1133, 510);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(270, 31);
this.label10.Size = new System.Drawing.Size(339, 39);
this.label10.TabIndex = 37;
this.label10.Text = "Fecha de Nacimiento";
this.label10.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -462,10 +453,9 @@
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label11.ForeColor = System.Drawing.Color.Navy;
this.label11.Location = new System.Drawing.Point(1109, 414);
this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label11.Location = new System.Drawing.Point(1479, 510);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(120, 31);
this.label11.Size = new System.Drawing.Size(150, 39);
this.label11.TabIndex = 38;
this.label11.Text = "Telefono";
this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -474,10 +464,10 @@
//
this.btnEliminar.Enabled = false;
this.btnEliminar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnEliminar.Location = new System.Drawing.Point(1033, 567);
this.btnEliminar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnEliminar.Location = new System.Drawing.Point(1377, 698);
this.btnEliminar.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnEliminar.Name = "btnEliminar";
this.btnEliminar.Size = new System.Drawing.Size(128, 57);
this.btnEliminar.Size = new System.Drawing.Size(171, 70);
this.btnEliminar.TabIndex = 42;
this.btnEliminar.Text = "Eliminar";
this.btnEliminar.UseVisualStyleBackColor = true;
@@ -486,10 +476,10 @@
//
this.btnEditar.Enabled = false;
this.btnEditar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnEditar.Location = new System.Drawing.Point(883, 567);
this.btnEditar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnEditar.Location = new System.Drawing.Point(1177, 698);
this.btnEditar.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnEditar.Name = "btnEditar";
this.btnEditar.Size = new System.Drawing.Size(128, 57);
this.btnEditar.Size = new System.Drawing.Size(171, 70);
this.btnEditar.TabIndex = 41;
this.btnEditar.Text = "Editar";
this.btnEditar.UseVisualStyleBackColor = true;
@@ -498,10 +488,10 @@
// btnModificar
//
this.btnModificar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnModificar.Location = new System.Drawing.Point(581, 567);
this.btnModificar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnModificar.Location = new System.Drawing.Point(775, 698);
this.btnModificar.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnModificar.Name = "btnModificar";
this.btnModificar.Size = new System.Drawing.Size(128, 57);
this.btnModificar.Size = new System.Drawing.Size(171, 70);
this.btnModificar.TabIndex = 40;
this.btnModificar.Text = "Modificar";
this.btnModificar.UseVisualStyleBackColor = true;
@@ -510,10 +500,10 @@
// btnAgregar
//
this.btnAgregar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnAgregar.Location = new System.Drawing.Point(730, 567);
this.btnAgregar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnAgregar.Location = new System.Drawing.Point(973, 698);
this.btnAgregar.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnAgregar.Name = "btnAgregar";
this.btnAgregar.Size = new System.Drawing.Size(128, 57);
this.btnAgregar.Size = new System.Drawing.Size(171, 70);
this.btnAgregar.TabIndex = 39;
this.btnAgregar.Text = "Agregar";
this.btnAgregar.UseVisualStyleBackColor = true;
@@ -524,10 +514,9 @@
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label12.ForeColor = System.Drawing.Color.Navy;
this.label12.Location = new System.Drawing.Point(850, 249);
this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label12.Location = new System.Drawing.Point(1133, 306);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(76, 31);
this.label12.Size = new System.Drawing.Size(96, 39);
this.label12.TabIndex = 43;
this.label12.Text = "Calle";
this.label12.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -549,10 +538,11 @@
this.referencia,
this.fecha_nac,
this.telefono});
this.dataGridView1.Location = new System.Drawing.Point(258, 75);
this.dataGridView1.Location = new System.Drawing.Point(344, 92);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 51;
this.dataGridView1.Size = new System.Drawing.Size(1100, 150);
this.dataGridView1.Size = new System.Drawing.Size(1467, 185);
this.dataGridView1.TabIndex = 44;
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
this.dataGridView1.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_RowEnter);
@@ -651,10 +641,10 @@
// btnNuevo
//
this.btnNuevo.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnNuevo.Location = new System.Drawing.Point(437, 567);
this.btnNuevo.Margin = new System.Windows.Forms.Padding(2);
this.btnNuevo.Location = new System.Drawing.Point(583, 698);
this.btnNuevo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnNuevo.Name = "btnNuevo";
this.btnNuevo.Size = new System.Drawing.Size(128, 57);
this.btnNuevo.Size = new System.Drawing.Size(171, 70);
this.btnNuevo.TabIndex = 45;
this.btnNuevo.Text = "Nuevo";
this.btnNuevo.UseVisualStyleBackColor = true;
@@ -670,9 +660,9 @@
//
// personal
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1370, 678);
this.ClientSize = new System.Drawing.Size(1827, 834);
this.Controls.Add(this.btnNuevo);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.label12);
@@ -704,7 +694,7 @@
this.Controls.Add(this.txtapellidopersonal);
this.Controls.Add(this.txtnombrepersonal);
this.Controls.Add(this.flowLayoutPanel1);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "personal";
this.Text = "personal";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+7
View File
@@ -122,5 +122,12 @@ namespace compabetov2
btnAgregar.Enabled = true;
dataGridView1.Enabled = false;
}
private void button1_Click(object sender, EventArgs e)
{
MenuPrincipal menuPrincipal = new MenuPrincipal();
menuPrincipal.Show();
this.Dispose(true);
}
}
}
+52 -53
View File
@@ -67,10 +67,9 @@
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.Location = new System.Drawing.Point(493, 105);
this.lblfecha.Name = "lblfecha";
this.lblfecha.Size = new System.Drawing.Size(126, 46);
this.lblfecha.Size = new System.Drawing.Size(159, 58);
this.lblfecha.TabIndex = 13;
this.lblfecha.Text = "label2";
this.lblfecha.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -81,10 +80,9 @@
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.Location = new System.Drawing.Point(681, -14);
this.lblhora.Name = "lblhora";
this.lblhora.Size = new System.Drawing.Size(249, 91);
this.lblhora.Size = new System.Drawing.Size(318, 113);
this.lblhora.TabIndex = 12;
this.lblhora.Text = "label1";
this.lblhora.Click += new System.EventHandler(this.lblhora_Click);
@@ -93,27 +91,27 @@
//
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.Location = new System.Drawing.Point(1605, -1);
this.flowLayoutPanel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
this.flowLayoutPanel2.Size = new System.Drawing.Size(243, 968);
this.flowLayoutPanel2.Size = new System.Drawing.Size(324, 1191);
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.Location = new System.Drawing.Point(3, 2);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(234, 214);
this.panel1.Size = new System.Drawing.Size(312, 263);
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.Location = new System.Drawing.Point(64, 34);
this.pictureBox9.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox9.Name = "pictureBox9";
this.pictureBox9.Size = new System.Drawing.Size(190, 197);
this.pictureBox9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -130,26 +128,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.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(243, 974);
this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1199);
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(2, 2);
this.panel2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.panel2.Location = new System.Drawing.Point(3, 2);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(234, 214);
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(48, 28);
this.pictureBox7.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox7.Location = new System.Drawing.Point(64, 34);
this.pictureBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(190, 197);
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -165,14 +163,15 @@
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(2, 220);
this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button1.Location = new System.Drawing.Point(3, 269);
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button1.Name = "button1";
this.button1.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button1.Size = new System.Drawing.Size(234, 93);
this.button1.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button1.Size = new System.Drawing.Size(312, 114);
this.button1.TabIndex = 8;
this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
@@ -183,11 +182,11 @@
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(2, 317);
this.button2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button2.Location = new System.Drawing.Point(3, 387);
this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button2.Name = "button2";
this.button2.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button2.Size = new System.Drawing.Size(234, 93);
this.button2.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button2.Size = new System.Drawing.Size(312, 114);
this.button2.TabIndex = 9;
this.button2.Text = "Estadisticas";
this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -202,11 +201,11 @@
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(2, 414);
this.button3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button3.Location = new System.Drawing.Point(3, 505);
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button3.Name = "button3";
this.button3.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button3.Size = new System.Drawing.Size(234, 93);
this.button3.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button3.Size = new System.Drawing.Size(312, 114);
this.button3.TabIndex = 10;
this.button3.Text = "Productos";
this.button3.UseVisualStyleBackColor = false;
@@ -220,11 +219,11 @@
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(2, 511);
this.button4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button4.Location = new System.Drawing.Point(3, 623);
this.button4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button4.Name = "button4";
this.button4.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button4.Size = new System.Drawing.Size(234, 93);
this.button4.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button4.Size = new System.Drawing.Size(312, 114);
this.button4.TabIndex = 11;
this.button4.Text = "Reportes";
this.button4.UseVisualStyleBackColor = false;
@@ -238,48 +237,48 @@
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(2, 608);
this.button5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button5.Location = new System.Drawing.Point(3, 741);
this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button5.Name = "button5";
this.button5.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button5.Size = new System.Drawing.Size(234, 93);
this.button5.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
this.button5.Size = new System.Drawing.Size(312, 114);
this.button5.TabIndex = 12;
this.button5.Text = "Salir";
this.button5.UseVisualStyleBackColor = 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.Location = new System.Drawing.Point(325, 283);
this.flowLayoutPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
this.flowLayoutPanel3.Size = new System.Drawing.Size(955, 769);
this.flowLayoutPanel3.Size = new System.Drawing.Size(1273, 946);
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.Location = new System.Drawing.Point(365, 229);
this.textBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(300, 30);
this.textBox1.Size = new System.Drawing.Size(399, 36);
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.Location = new System.Drawing.Point(792, 229);
this.textBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(300, 30);
this.textBox2.Size = new System.Drawing.Size(399, 36);
this.textBox2.TabIndex = 16;
//
// vender
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(1028, 609);
this.ClientSize = new System.Drawing.Size(1371, 750);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.flowLayoutPanel3);
@@ -287,7 +286,7 @@
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.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "vender";
this.Text = "vender";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+23 -1
View File
@@ -98,15 +98,32 @@ namespace compabetov2
btnMenos.FlatStyle = FlatStyle.Flat;
btnMenos.FlatAppearance.BorderSize = 0;
btnMenos.BackColor = Color.FromArgb(33, 90, 255);
// Agregar esquinas redondeadas al botón
System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
gp.AddEllipse(0, 0, btnMenos.Width, btnMenos.Height);
btnMenos.Region = new Region(gp);
btnMenos.Click += new EventHandler(delegate (object sender, EventArgs e)
{
int numeroContador = int.Parse(contador.Text.ToString());
// Validar que el contador no sea 0 antes de restar
if (numeroContador > 0)
{
contador.Text = (numeroContador - 1).ToString();
total -= producto.precion;
}
else
{
// Mostrar mensaje de advertencia
MessageBox.Show("No puedes vender cosas negativas", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
});
Button btnMas = new Button();
btnMas.Text = "+";
btnMas.Width = 25;
@@ -171,7 +188,12 @@ namespace compabetov2
}
private void button1_Click(object sender, EventArgs e)
{
MenuPrincipal menuPrincipal = new MenuPrincipal();
menuPrincipal.Show();
this.Dispose(true);
}
}
}