Beispiel #1
0
 private void LoadSelectedSuggestion()
 {
     if (_suggestions.Length > 0)
     {
         Suggestion suggestion = GetCurrentSuggestion();
         suggestion.Update(GetCurrentIteration());
         //SuggestionDisplay.Text = suggestion.Narrative;
         SuggestionDisplay.Rtf = RTFUtility.GenerateRTF(suggestion.Narrative);
         //MessageBox.Show(SuggestionDisplay.Rtf);
         if (suggestion.SupportsIterations)
         {
             // show iterations
             Separator2.Visible  = true;
             RepeatLabel.Visible = true;
             DecreaseRepetitionNumber.Visible = true;
             Iterations.Visible = true;
             IncreaseRepetitionNumber.Visible = true;
         }
         else
         {
             // hide iterations
             Separator2.Visible  = false;
             RepeatLabel.Visible = false;
             DecreaseRepetitionNumber.Visible = false;
             Iterations.Visible = false;
             IncreaseRepetitionNumber.Visible = false;
         }
     }
     else
     {
         SuggestionDisplay.Text = "Sorry but no repetitions were detected yet.";
     }
 }