private void FillLayoutWithElements(int amount) { for (var i = 0; i < amount; i++) { GameCells.Add(CreateCell()); } }
protected void CreateCells() { for (int x = 1; x <= BoardSize.Size; x++) { for (int y = 1; y <= BoardSize.Size; y++) { GameCells.Add(new GameCell(CellSize, x, y)); } } }