private void StepThroughGrid(GridStepper enterRow, GridStepper onColumn) { StepThroughGrid(enterRow, onColumn, null); }
private void StepThroughGrid(GridStepper enterRow, GridStepper onColumn, GridStepper endRow) { for (int i = 0; i < this.Height; ++i) { if (enterRow != null) { enterRow(i, 0); } for (int j = 0; j < this.Width; ++j) { if (onColumn != null) { onColumn(i, j); } } if (endRow != null) { endRow(i, this.Width); } } }
private void StepThroughGrid(GridStepper onColumn) { StepThroughGrid(null, onColumn, null); }