private void btnAtras_Click(object sender, EventArgs e) { FRVotar f = new FRVotar(carnet); f.Show(); this.Hide(); }
private void btnIngresar_Click(object sender, EventArgs e) { int seleccion = Convert.ToInt32(comboBox1.SelectedValue); switch (seleccion) { case 1: FRVotar f = new FRVotar(carnet); f.Show(); this.Hide(); break; case 2: FRVotar f2 = new FRVotar(carnet); f2.Show(); this.Hide(); break; case 3: FRVotar f3 = new FRVotar(carnet); f3.Show(); this.Hide(); break; case 4: FRVotar f4 = new FRVotar(carnet); f4.Show(); this.Hide(); break; case 5: FRVotar f5 = new FRVotar(carnet); f5.Show(); this.Hide(); break; } }