public void FillNumber(List <Cell> cells, LineNumber number, int startIndex, bool withResolve = true) { for (var i = startIndex; i < startIndex + number.Number; i++) { cells[i].Fill(); } var lastCrossIndex = startIndex + number.Number; if (lastCrossIndex < cells.Count) { cells[lastCrossIndex].Cross(); } if (withResolve) { number.Resolve(); } }