Exemplo n.º 1
0
        private void button9_Click(object sender, EventArgs e)
        {
            FRVotoAlcalde f = new FRVotoAlcalde(carnet);

            f.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            string selecionar   = "SELECT voto_alcalde  FROM Votantes  WHERE Carnet = " + carnet + "";
            string mensjecontra = Convert.ToString(dbexpo.mthObtenerValor(selecionar));

            if (mensjecontra == "1")
            {
                MessageBox.Show("Usted ya realizo su voto");
            }
            else if (mensjecontra == "2")
            {
                FRVotoAlcalde f = new FRVotoAlcalde(carnet);
                f.Show();
                this.Hide();
            }
        }