private void btnValidValues_Click(object sender, RoutedEventArgs e)
 {
     EnableContainingValues();
     GridValues         = getValuesInGrid();
     OriginalGridValues = getValuesInGrid();
     mygrid             = new LibrarySudokuResolver.Grid(GridValues);
 }
 private void btnCheck_Click(object sender, RoutedEventArgs e)
 {
     LibrarySudokuResolver.Grid grid = new LibrarySudokuResolver.Grid(getValuesInGrid());
     if (grid.CheckGrid())
     {
         MessageBox.Show("There are not error in this grid !", "Success");
     }
     else
     {
         MessageBox.Show("There are error(s) in this grid !", "Error");
     }
 }
 private void btnSolve_Click(object sender, RoutedEventArgs e)
 {
     GridValues = getValuesInGrid();
     mygrid     = new LibrarySudokuResolver.Grid(GridValues);
     if (mygrid.AutoSolve())
     {
         setNewValues();
         MessageBox.Show("Grid completed", "Success");
     }
     else
     {
         MessageBox.Show("There are one or several error(s) in the original grid !", "Error");
     }
 }