Пример #1
0
 public void CopyValues(FullGrid other)
 {
     for (int cellNb = 0; cellNb < Cells.Count(); cellNb++)
     {
         Cells[cellNb].Value = other.Cells[cellNb].Value;
     }
 }
Пример #2
0
        public SudokuVM()
        {
            _mainGrid       = new FullGrid();
            _selectedNumber = new SelectedNumber {
                Value = 1
            };
            _rows    = new List <SubCellsVM>(9);
            _columns = new List <SubCellsVM>(9);
            SubGrids = new BindingList <SubGridVM>();

            InitCells();
            InitCommands();
        }