//By Johann /// <summary> /// Loads the topics of the selected child category into the BindableCollection /// </summary> private void LoadTopics() { Topics.Clear(); if (SelectedChildCategory != null) { Topics.AddRange(Topic.GetTopicsByCategoryId(SelectedChildCategory.Id)); } }
public void AddTopic(params string[] topics) { Topics.AddRange(topics); }
/// <summary> /// Initializes a new instance of the <see cref="Phrase"/> class. /// </summary> /// <param name="keyword">The keyword<see cref="string"/></param> /// <param name="aggregatedLeagueTable">The aggregatedLeagueTable<see cref="SortedList{string, double}"/></param> /// <param name="topics">The topics<see cref="Topics"/></param> /// <param name="stopFilter">The stopFilter<see cref="NRakeCore.StopWordFilters.IStopWordFilter"/></param> /// <param name="rank">The rank<see cref="int"/></param> public Phrase(string keyword, SortedList <string, double> aggregatedLeagueTable, Topics topics, NRakeCore.StopWordFilters.IStopWordFilter stopFilter, int rank) : this(keyword, aggregatedLeagueTable, rank) { Topics.AddRange(topics.Where(topic => TopicKeywords(topic, stopFilter).Contains(keyword)).ToArray()); }
public PubsubRequestData(string[] topics, string token) { Topics.AddRange(topics); Token = token; }
/* * public Category (string title) * :this() * { * Title=title; * * } * public Category (string title, Topic[] topics) * :this(title) * { * Topics.AddRange(topics); * for(int i=0; i<topics.Length; i++) { * Topics.Add(topics[i]); * } * * }*/ public Category(string title, params Topic[] topics) : this() { Title = title; Topics.AddRange(topics); }
public SubscriptionsRegistrar Subscribe(string topic) { _topics.AddRange(new[] { topic }); return(this); }