/// <summary> /// The PopulatePhraseListView /// </summary> /// <param name="phrases">The phrases<see cref="Phrases"/></param> /// <param name="filter">The filter<see cref="string"/></param> private void PopulatePhraseListView(Phrases phrases, string filter) { phrasesListView.Items.Clear(); ListViewItem[] items = phrases.Select(phrase => GetSinglePhraseListViewItem(phrase)).Where(item => ContainsFilter(item, filter)).ToArray(); phrasesListView.Items.AddRange(items); }
/// <summary> /// The GetTopicPhrases /// </summary> /// <param name="topics">The topics<see cref="Topics"/></param> /// <returns>The <see cref="Phrases"/></returns> private Phrases GetTopicPhrases(Topics topics) { var phrases = new Phrases(); CollectionKeywordExtractor kwe = new CollectionKeywordExtractor(topics); phrases.AddRange(kwe.FindAllKeyPhrases()); return(phrases); }
/// <summary> /// The PopulatePhraseListView /// </summary> /// <param name="phrases">The phrases<see cref="Phrases"/></param> private void PopulatePhraseListView(Phrases phrases) { PopulatePhraseListView(phrases, string.Empty); }
/// <summary> /// Initializes a new instance of the <see cref="Topic"/> class. /// </summary> public Topic() { Phrases = new Phrases(); }