public GameBoard(GameBoardForm gameBoardForm) { parentForm = gameBoardForm; /* stworzenie 9 paneli, z któych każdy ma 9 pól */ tileSetMatrix = new TileSet[3, 3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { tileSetMatrix[i, j] = new TileSet(this, i, j); } } }
public ControlPanelForm(GameBoardForm parentForm) { _parentForm = parentForm; InitializeComponent(); }