Example #1
0
        private void AddItem()
        {
            SettingTopicItem newTopic = Topics.FirstOrDefault(x => x is NewSettingTopicItem);
            int indexOf = Topics.IndexOf(newTopic);

            Topics.Insert(indexOf, new SettingTopicItem("new_topic"));
        }
Example #2
0
 private void RemoveItem(SettingTopicItem settingTopicItem)
 {
     Topics.Remove(settingTopicItem);
 }