Example #1
0
        private void backButton_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            LevelsForm levelsForm = new LevelsForm();

            levelsForm.ShowDialog();
        }
Example #2
0
        private void restartButton_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            LevelsForm levelsForm = new LevelsForm();

            Array.Clear(intMatrix, 0, intMatrix.Length);
            Array.Clear(buttonMatrix, 0, buttonMatrix.Length);
            rowsNr    = 0;
            columnsNr = 0;
            levelsForm.ShowDialog();
        }