Exemplo n.º 1
0
 public void AddSentenceElement(ISentenceElement element)
 {
     SentenceList.Add(element);
     if (element is Word)
     {
         CountWords++;
     }
 }
Exemplo n.º 2
0
 public void PublishSentence()
 {
     if (!CurrentSentence.WordList.Any())
     {
         return;
     }
     SentenceList.Add(CurrentSentence);
     CurrentSentence = new Sentence();
     RaisePropertyChanged("CurrentSentenceAsString");
 }
Exemplo n.º 3
0
 public void PublishSentence(string sentence, string sender)
 {
     SentenceList.Add(new Sentence(sentence, sender));
 }