Exemplo n.º 1
0
 public SubGridVM(SubGrid subGrid, SelectedNumber selectedNumber)
 {
     _subGrid = subGrid;
     Cells    = new BindingList <CellVM>();
     foreach (Cell cell in _subGrid.Cells)
     {
         Cells.Add(new CellVM(cell, selectedNumber));
     }
 }
Exemplo n.º 2
0
 public SudokuGrid(GameDifficulty diff = GameDifficulty.Easy)
 {
     for (int i = 0; i < 3; i++)
     {
         for (int j = 0; j < 3; j++)
         {
             _arr[i, j] = new SubGrid();
         }
     }
     Init();
     Shuffle();
     _arrAnswer = ((SubGrid[, ])DeepClone(_arr));
     SetDifficulty(diff);
 }