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