public void AddContentToContentList(ContentType type, string name)
        {
            RemoveContentFromContentLists(name);
            var newContent = new ContentIconAndName(ContentIconAndName.GetContentTypeIcon(type), name);

            DisplayContentList.Add(newContent);
            ContentList.Add(newContent);
            SubContentManager.AddSubContentAndRemoveDuplicateContent(DisplayContentList, service,
                                                                     newContent);
            RaisePropertyChanged("ContentList");
        }
        public void FilterContentList()
        {
            DisplayContentList.Clear();
            for (int index = 0; index < ContentList.Count; index++)
            {
                var content = ContentList[index];
                if (filterList.Count == 0 || filterList.Contains(content.GetContentType()))
                {
                    if (string.IsNullOrEmpty(SearchText) ||
                        content.Name.ToLower().Contains(SearchText.ToLower()))
                    {
                        DisplayContentList.Add(content);
                    }
                }
            }
            var list = CopyList(DisplayContentList);

            for (int index = 0; index < list.Count; index++)
            {
                var content = list[index];
                SubContentManager.AddSubContentAndRemoveDuplicateContent(DisplayContentList, service,
                                                                         content);
            }
        }