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