Example #1
0
 public void fillBoard()
 {
     if (!isFinish)
     {
         this.Controls.Clear();
         Cell[,] ans = sudokuGrid.GetAnswer();
         for (int i = 0; i < 9; i++)
         {
             for (int j = 0; j < 9; j++)
             {
                 SudokuCell sc = new SudokuCell(ans[i, j], j, i);
                 this.Controls.Add(sc, j, i);
             }
         }
         isFinish         = true;
         Form1.sudokuGrid = new SudokuGrid();
     }
 }