public SplitPowerGrid(PowerGrid powerGrid) { size = 1; cellGrids = new CellGrid[301, 301]; for (var i = 1; i <= 301 - size; ++i) { for (var j = 1; j <= 301 - size; ++j) { cellGrids[i, j] = powerGrid.GetCellGrid(i, j, size); } } }
public SplitPowerGrid(PowerGrid powerGrid) { size = 1; cellGrids = new CellGrid[301, 301]; for (var i = 1; i <= 301 - size; ++i) { for (var j = 1; j <= 301 - size; ++j) { cellGrids[i, j] = powerGrid.GetCellGrid(i, j, size); } } }