private void SetCellViewModelsForBlock(SudokuBlock sudokuBlock, Block block)
        {
            var cellsViewModels = block.Cells.OfType <Cell>().Select(x => new CellViewModel(x, ShowCandidates)).ToArray();

            _cellViewModels.AddRange(cellsViewModels);
            sudokuBlock.DataContext = cellsViewModels;
        }
        private void ToggleCellViewModelTooltip(SudokuBlock sudokuBlock)
        {
            var cellViewModels = sudokuBlock.DataContext as CellViewModel[];

            if (cellViewModels == null)
            {
                return;
            }

            foreach (var cellViewModel in cellViewModels)
            {
                cellViewModel.ShowTooltip = ShowCandidates;
            }
        }