private void btnAnuuler_Click(object sender, EventArgs e) { MessageBox.Show("Voulez-vous vraiment annuler votre reation de compte", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); Form cc = new PageLogin(); cc.Show(); }
private void verification() { if (txtNom.Text == "" || txtPrenom.Text == "" || txtEmail.Text == "" || txtLogin.Text == "" || txtMP.Text == "" || txtMPConf.Text == "") { MessageBox.Show("Element manquant", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else if (txtMP.Text != txtMPConf.Text) { MessageBox.Show("La confirmation du mot de passe n'est pas la même", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { Form cc = new PageLogin(); cc.Show(); } }
public void ShowLogin() { PageLogin p = new PageLogin(); p.ShowDialog(); }