private void Generate2dArr(int size) { for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { OverlayCellsList.Add(new Cell { Active = false, XIndex = j, YIndex = i }); } } }
private void Generate2dArr(int size) { for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { OverlayCellsList.Add(new Cell { Active = false, XIndex = j, YIndex = i, ToggleCellCommand = new RelayCommand <bool>(ChaosRecipeEnhancer.currentData.ActivateNextCell), //ButtonName = "Btn " + j + " " + i, //CellName = "Cell " + j + " " + i }); } } }