public void OnBoardSpaceSelected(object sender, EventArgs eventArgs) { BoardSpace space = (BoardSpace)sender; int column = getColumn(space); BoardSpaceSelectedEventArgs boardSpaceSelectedEventArgs = new BoardSpaceSelectedEventArgs(column); BoardSpaceSelected?.Invoke(this, boardSpaceSelectedEventArgs); }
public void OnBoardSpaceSelected(object sender, BoardSpaceSelectedEventArgs eventArgs) { BoardRow boardRow = (BoardRow)sender; int row = getRow(boardRow); ICoordinate coordinate = new Coordinate(row, eventArgs.Column); game.makeNextMove(coordinate); }