private void backButton_Click(object sender, EventArgs e) { this.Visible = false; LevelsForm levelsForm = new LevelsForm(); levelsForm.ShowDialog(); }
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(); }