Пример #1
0
 private void FillLayoutWithElements(int amount)
 {
     for (var i = 0; i < amount; i++)
     {
         GameCells.Add(CreateCell());
     }
 }
Пример #2
0
 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));
         }
     }
 }