private void btnVolverInicio_Click(object sender, EventArgs e) { FRMenuVotante f = new FRMenuVotante(carnet); f.Show(); this.Hide(); }
private void btnAtras_Click(object sender, EventArgs e) { FRMenuVotante F = new FRMenuVotante(carnet); F.Show(); this.Hide(); }
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(); } }
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(); } } }