Esempio n. 1
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            gamemod = 4;
            customForm form2 = new customForm(rows, cols, mineAmount);

            form2.FormClosing += Form2_FormClosing;
            form2.Show();
        }
Esempio n. 2
0
        private void Form2_FormClosing(object sender, FormClosingEventArgs e)
        {
            customForm form2 = sender as customForm;

            if (form2.DialogResult != DialogResult.Cancel)
            {
                form2.giveFieldInfo(out rows, out cols, out mineAmount);
                gameStart();
            }
        }