Beispiel #1
0
        private void btnVolverInicio_Click(object sender, EventArgs e)
        {
            FRMenuVotante f = new FRMenuVotante(carnet);

            f.Show();
            this.Hide();
        }
Beispiel #2
0
        private void btnAtras_Click(object sender, EventArgs e)
        {
            FRMenuVotante F = new FRMenuVotante(carnet);

            F.Show();
            this.Hide();
        }
Beispiel #3
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     progressBar1.Increment(1);
     if (progressBar1.Value == 100)
     {
         timer1.Stop();
         FRMenuVotante newForm = new FRMenuVotante(carnet);
         newForm.Show();
         this.Hide();
     }
 }
Beispiel #4
0
 private void btnIngresar_Click(object sender, EventArgs e)
 {
     if (txtContra.Text.Trim() != "" && txtUsuario.Text.Trim() != "")
     {
         string consultar = "SELECT Carnet FROM Votantes WHERE Carnet = " + txtUsuario.Text + " AND Contraseña =" + txtContra.Text;
         EXPO.dbexpo.mthLogin(consultar);
         string contar   = "SELECT Carnet FROM Votantes WHERE Carnet =" + txtUsuario.Text + " AND Contraseña =" + txtContra.Text;
         string variable = Convert.ToString(EXPO.dbexpo.mthObtenerValor(contar));
         if (variable != "")
         {
             string carnet = txtUsuario.Text;
             mthLimpiar();
             FRMenuVotante f = new FRMenuVotante(carnet);
             f.Show();
             this.Hide();
         }
     }
 }