Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private void btnModif_Click(object sender, EventArgs e)
        {
            FrmModif modif = new FrmModif();

            modif.ShowDialog();
        }