private void Button_Hint_Click(object sender, RoutedEventArgs e) { bool existsHint = SudokuGrid.GetHint(); if (!existsHint && ProgressBar_SudokuStatus.Value != 100) { ShowUnsolvableSudokuMessage(); } else if (ProgressBar_SudokuStatus.Value != 100) { ClearMessage(); } UpdateProgressBar(); }