private void InitializeCells() { int k = 0; for (int x = 0; x < Length; x++) { for (int y = 0; y < Length; y++) { Cellules[x, y] = new Cellule(new MapCoordinates(x, y), k); add(Cellules[x, y], x, y); k++; } } }
private void add(Cellule cell, int x, int y) { tableLayoutPanel.Controls.Add(cell, x, y); }