예제 #1
0
 public Cell(Board board, Square square, int row, int column)
 {
     Board = board;
       Square = square;
       Row = row;
       Column = column;
       Enabled = true;
 }
예제 #2
0
 private void SetupGrid(Board board)
 {
     this.ColumnDefinitions.Add(new ColumnDefinition { MinWidth = 2, MaxWidth = 2 });
       this.RowDefinitions.Add(new RowDefinition { MinHeight = 2, MaxHeight = 2 });
       for (int counter = 0; counter < board.Size; counter++)
       {
     this.ColumnDefinitions.Add(new ColumnDefinition { MinWidth = 40, MaxWidth = 40 });
     this.RowDefinitions.Add(new RowDefinition { MinHeight = 40, MaxHeight = 40 });
     if (counter % board.SquareSize == board.SquareSize - 1)
     {
       this.ColumnDefinitions.Add(new ColumnDefinition { MinWidth = 2, MaxWidth = 2 });
       this.RowDefinitions.Add(new RowDefinition { MinHeight = 2, MaxHeight = 2 });
     }
       }
 }
예제 #3
0
 public Algo(Board board)
     : base(board)
 {
 }
예제 #4
0
 public SudokuAlgoBase(Board board)
 {
     Board = board;
       Cell.CellValueChanged += OnCellValueChange;
 }
예제 #5
0
 public BoardRange(Board board)
     : base(board.MinimumCellValue, board.MaximumCellValue)
 {
 }
예제 #6
0
        private Dictionary<Cell, List<int>> cube = null; // we can also create the

        #endregion Fields

        #region Constructors

        public Algo(Board board)
            : base(board)
        {
            Initiate();
        }