afino detalles
This commit is contained in:
Generated
+76
-39
@@ -32,84 +32,120 @@
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtContra = new System.Windows.Forms.TextBox();
|
||||
this.txtConfi = new System.Windows.Forms.TextBox();
|
||||
this.btnConfirmar = new System.Windows.Forms.Button();
|
||||
this.btnCancelar = new System.Windows.Forms.Button();
|
||||
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(13, 13);
|
||||
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label1.Font = new System.Drawing.Font("Poppins", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.ForeColor = System.Drawing.Color.Transparent;
|
||||
this.label1.Location = new System.Drawing.Point(393, 244);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(96, 20);
|
||||
this.label1.Size = new System.Drawing.Size(160, 40);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Contraseña:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(8, 101);
|
||||
this.label2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label2.Font = new System.Drawing.Font("Poppins", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.ForeColor = System.Drawing.Color.Transparent;
|
||||
this.label2.Location = new System.Drawing.Point(339, 374);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(166, 20);
|
||||
this.label2.Size = new System.Drawing.Size(282, 40);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "Confirmar contraseña:";
|
||||
//
|
||||
// txtContra
|
||||
//
|
||||
this.txtContra.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtContra.Location = new System.Drawing.Point(12, 54);
|
||||
this.txtContra.Font = new System.Drawing.Font("Poppins", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtContra.Location = new System.Drawing.Point(328, 299);
|
||||
this.txtContra.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtContra.Name = "txtContra";
|
||||
this.txtContra.PasswordChar = '*';
|
||||
this.txtContra.Size = new System.Drawing.Size(233, 26);
|
||||
this.txtContra.Size = new System.Drawing.Size(309, 42);
|
||||
this.txtContra.TabIndex = 2;
|
||||
this.txtContra.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||
//
|
||||
// txtConfi
|
||||
//
|
||||
this.txtConfi.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtConfi.Location = new System.Drawing.Point(12, 145);
|
||||
this.txtConfi.Font = new System.Drawing.Font("Poppins", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtConfi.Location = new System.Drawing.Point(321, 429);
|
||||
this.txtConfi.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtConfi.Name = "txtConfi";
|
||||
this.txtConfi.PasswordChar = '*';
|
||||
this.txtConfi.Size = new System.Drawing.Size(238, 26);
|
||||
this.txtConfi.Size = new System.Drawing.Size(316, 42);
|
||||
this.txtConfi.TabIndex = 3;
|
||||
//
|
||||
// btnConfirmar
|
||||
// pictureBox2
|
||||
//
|
||||
this.btnConfirmar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnConfirmar.Location = new System.Drawing.Point(12, 210);
|
||||
this.btnConfirmar.Name = "btnConfirmar";
|
||||
this.btnConfirmar.Size = new System.Drawing.Size(92, 32);
|
||||
this.btnConfirmar.TabIndex = 4;
|
||||
this.btnConfirmar.Text = "Confirmar";
|
||||
this.btnConfirmar.UseVisualStyleBackColor = true;
|
||||
this.btnConfirmar.Click += new System.EventHandler(this.btnConfirmar_Click);
|
||||
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
||||
this.pictureBox2.Image = global::compabetov2.Properties.Resources.check1;
|
||||
this.pictureBox2.Location = new System.Drawing.Point(389, 492);
|
||||
this.pictureBox2.Name = "pictureBox2";
|
||||
this.pictureBox2.Size = new System.Drawing.Size(100, 69);
|
||||
this.pictureBox2.TabIndex = 22;
|
||||
this.pictureBox2.TabStop = false;
|
||||
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
|
||||
//
|
||||
// btnCancelar
|
||||
// pictureBox1
|
||||
//
|
||||
this.btnCancelar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnCancelar.Location = new System.Drawing.Point(158, 210);
|
||||
this.btnCancelar.Name = "btnCancelar";
|
||||
this.btnCancelar.Size = new System.Drawing.Size(92, 32);
|
||||
this.btnCancelar.TabIndex = 5;
|
||||
this.btnCancelar.Text = "Cancelar";
|
||||
this.btnCancelar.UseVisualStyleBackColor = true;
|
||||
this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click);
|
||||
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
||||
this.pictureBox1.Image = global::compabetov2.Properties.Resources.cancel1;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(495, 492);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(100, 69);
|
||||
this.pictureBox1.TabIndex = 21;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label3.Font = new System.Drawing.Font("Poppins", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label3.ForeColor = System.Drawing.Color.Transparent;
|
||||
this.label3.Location = new System.Drawing.Point(350, 157);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(271, 40);
|
||||
this.label3.TabIndex = 23;
|
||||
this.label3.Text = "Modificar Contraseña";
|
||||
//
|
||||
// ModificarContra
|
||||
//
|
||||
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(262, 254);
|
||||
this.Controls.Add(this.btnCancelar);
|
||||
this.Controls.Add(this.btnConfirmar);
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(104)))), ((int)(((byte)(255)))));
|
||||
this.BackgroundImage = global::compabetov2.Properties.Resources.Form;
|
||||
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.ClientSize = new System.Drawing.Size(951, 716);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.pictureBox2);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Controls.Add(this.txtConfi);
|
||||
this.Controls.Add(this.txtContra);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.DoubleBuffered = true;
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.Name = "ModificarContra";
|
||||
this.Text = "ModificarContra";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -121,7 +157,8 @@
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtContra;
|
||||
private System.Windows.Forms.TextBox txtConfi;
|
||||
private System.Windows.Forms.Button btnConfirmar;
|
||||
private System.Windows.Forms.Button btnCancelar;
|
||||
private System.Windows.Forms.PictureBox pictureBox2;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.Label label3;
|
||||
}
|
||||
}
|
||||
@@ -48,5 +48,29 @@ namespace compabetov2
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void pictureBox2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string contra = txtContra.Text;
|
||||
string contraConfi = txtConfi.Text;
|
||||
if (contra.Equals(contraConfi))
|
||||
{
|
||||
if (service.modificarContra(empleado, contra))
|
||||
{
|
||||
|
||||
Close();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Las contraseña no son iguales", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user