Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int level = 0;

            if (rbEasy.Checked)
            {
                level = 1;
            }
            else if (rbMedium.Checked)
            {
                level = 2;
            }
            else
            {
                level = 3;
            }
            Labyrinthe fm = new Labyrinthe((int)numericUpDown1.Value, level);

            fm.MdiParent = papa;
            //fm.Dock = DockStyle.Fill;
            fm.StartPosition = FormStartPosition.CenterScreen;
            fm.Show();
        }
 //Labyrinthe
 private void nouvellePartieToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Labyrinthe.Labyrinthe fm = new Labyrinthe.Labyrinthe();
     fm.MdiParent = this;
     fm.Show();
 }