private void pictureBox5_Click(object sender, EventArgs e) { this.Hide(); menu_candidat m = new menu_candidat(); m.Show(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text != "" && textBox2.Text != "") { nom = textBox1.Text; cin = textBox2.Text; this.Hide(); menu_candidat m = new menu_candidat(); m.Show(); } else { MessageBox.Show("Remplir les champs !!"); } }
private void confirmer_Click(object sender, EventArgs e) { connection.con.Open(); string req = "insert into certif values('" + menu_candidat.fil + "','" + menu_candidat.mod + "','" + CANDIDAT.nom + "','" + CANDIDAT.cin + "'," + note + ",'" + DateTime.Now.ToString() + "')"; connection.cmd = new SqlCommand(req, connection.con); connection.cmd.ExecuteNonQuery(); connection.con.Close(); if (note >= 12) { this.Hide(); resultat rr = new resultat(); rr.Show(); } else { MessageBox.Show("A la prochaine Inchallah"); this.Hide(); menu_candidat m = new menu_candidat(); m.Show(); } }