Пример #1
0
 private void btnGuardarPDS_Click(object sender, EventArgs e)
 {
     if (txtRespuesta1.Text != pre.respuesta)
     {
         errorProviderR1.SetError(txtRespuesta1, "Respuesta inválida.");
         txtRespuesta1.Focus();
     }
     else if (txtRespuesta2.Text != pre2.respuesta)
     {
         errorProviderR1.SetError(txtRespuesta1, "");
         errorProviderR2.SetError(txtRespuesta2, "Respuesta inválida.");
         txtRespuesta2.Focus();
     }
     else if (txtRespuesta3.Text != pre3.respuesta)
     {
         errorProviderR2.SetError(txtRespuesta2, "");
         errorProviderR3.SetError(txtRespuesta3, "Respuesta inválida.");
         txtRespuesta3.Focus();
     }
     else
     {
         errorProviderR3.SetError(txtRespuesta3, "");
         Cambio_contraseña newpass = new Cambio_contraseña();
         this.Close();
         newpass.ShowDialog();
     }
 }
Пример #2
0
        private void lblOlvidarContraseña_Click(object sender, EventArgs e)
        {
            Cambio_contraseña cambio = new Cambio_contraseña();

            cambio.ShowDialog();
        }