private void clearBoard() { DialogResult playAgain = MessageBox.Show("Would you like to play again?", "Play Again", MessageBoxButtons.YesNo); if (playAgain == DialogResult.Yes) { for (int x = 0; x < 7; x++) { for (int y = 0; y < 6; y++) { Board[x][y].BackColor = lblTurn.BackColor; } } } else { LeaderBoards scores = new LeaderBoards(p1p, p2p, pList); this.Visible = false; scores.ShowDialog(); this.Close(); } }
private void clearBoard() { DialogResult playAgain = MessageBox.Show("Would you like to play again?", "Play Again", MessageBoxButtons.YesNo); if (playAgain == DialogResult.Yes) { for (int x = 0; x < 7; x++) for (int y = 0; y < 6; y++) Board[x][y].BackColor = lblTurn.BackColor; } else { LeaderBoards scores = new LeaderBoards(p1p, p2p, pList); this.Visible = false; scores.ShowDialog(); this.Close(); } }