private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { game = new GamePuzzles(); moves = 0; for (int r = 0; r < 5; r++) { for (int c = 0; c < 5; c++) { lightArray[r, c] = new Light(r, c, false); } } redraw(); nextLevel(); }
public Form1() { InitializeComponent(); game = new GamePuzzles(); for (int r = 0; r < 5; r++) { for (int c = 0; c < 5; c++) { lightArray[r, c] = new Light(r, c, false); } } redraw(); nextLevel(); }