Ejemplo n.º 1
0
 public Cell(Board board, Square square, int row, int column)
 {
     Board = board;
       Square = square;
       Row = row;
       Column = column;
       Enabled = true;
 }
Ejemplo n.º 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 });
     }
       }
 }
Ejemplo n.º 3
0
 public Algo(Board board)
     : base(board)
 {
 }
Ejemplo n.º 4
0
 public SudokuAlgoBase(Board board)
 {
     Board = board;
       Cell.CellValueChanged += OnCellValueChange;
 }
Ejemplo n.º 5
0
 public BoardRange(Board board)
     : base(board.MinimumCellValue, board.MaximumCellValue)
 {
 }
Ejemplo n.º 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();
        }