public bool Messages(int choix) { bool retour = false; switch (choix) { case 1: FrmMessage fs = new FrmMessage(); fs.ShowDialog(); retour = true; break; case 2: FrmEchec fe = new FrmEchec(); fe.ShowDialog(); retour = true; break; case 3: FrmVide fv = new FrmVide(); fv.ShowDialog(); retour = true; break; case 4: FrmModif fm = new FrmModif(); fm.ShowDialog(); retour = true; break; case 5: FrmIncorrecte fi = new FrmIncorrecte(); fi.ShowDialog(); retour = true; break; } return(retour); }
private void btnModif_Click(object sender, EventArgs e) { FrmModif modif = new FrmModif(); modif.ShowDialog(); }