protected virtual void OnGridWon(EventArgs e) { button1.Enabled = false; button2.Enabled = false; button3.Enabled = false; button4.Enabled = false; button5.Enabled = false; button6.Enabled = false; button7.Enabled = false; button8.Enabled = false; button9.Enabled = false; GridWon?.Invoke(this, e); BoardWon = true; }
private void OnGridWin() { GridWon?.Invoke(this, new TicTacToeGridEventArgs(GridWinner)); }
private void OnSubgridGridWin(int X, int Y, TicTacToeGridStatus Winner) { GridWon?.Invoke(this, new TicTacToeSubgridWinEventArgs(X, Y, Winner)); }