private void ClearCandidates() { for (int row = 0; row < grid.CellsInRow; row++) { for (int column = 0; column < grid.CellsInRow; column++) { int cellControlId = (1000 * (row + 1)) + column; CellControl cntlFoc = (CellControl)GetControl(cellControlId); cntlFoc.ClearCandidates(); } } CheckCandidates(); }
private void ResetCandidates() { for (int row = 0; row < grid.CellsInRow; row++) { for (int column = 0; column < grid.CellsInRow; column++) { int cellControlId = (1000 * (row + 1)) + column; CellControl cntlFoc = (CellControl)GetControl(cellControlId); cntlFoc.ClearCandidates(); //if (cntlFoc.CellValue == 0) { for (int i = 1; i <= 9; i++) { cntlFoc.SetCandidate(i); } cntlFoc.ShowCandidates = _Settings.ShowCandidates; } } } CheckCandidates(); }