示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MainForm FrmGame = null;

            if (radioButton1.Checked)
            {
                FrmGame = new MainForm(10, 15);
            }
            if (radioButton2.Checked)
            {
                FrmGame = new MainForm(15, 25);
            }
            if (radioButton3.Checked)
            {
                FrmGame = new MainForm(20, 50);
            }


            this.Hide();
            FrmGame.ShowDialog();
            Close();
        }