private void MenuItemEditRecomputeCandidates_Click(object sender, RoutedEventArgs e) { int[] z = new int[81]; for (int cell = 0; cell < 81; cell++) { z[cell] = _puzzle[cell] + 1; } var grid = SudokuGrid.CreateInstance(z); if (new BitwiseSolver().Solve(grid.ToString(), null, 2) == 0) { Messagings.SukakuCannotUseThisFunction(); e.Handled = true; return; } _puzzle = new UndoableGrid(grid); _puzzle.Unfix(); _puzzle.ClearStack(); UpdateImageGrid(); UpdateUndoRedoControls(); }