/// <summary>Determines whether the RssChannelCollection contains a specific value.</summary>
 public bool Contains(RssChannel value)
 {
     return base.List.Contains(value as object);
 }
 /// <summary>Removes an item to the RssChannelCollection.</summary>
 public void Remove(RssChannel value)
 {
     base.List.Remove(value as object);
 }
 /// <summary>Inserts an IRssChannel to the RssChannelCollection at the specified position.</summary>
 public void Insert(int index, RssChannel value)
 {
     base.List.Insert(index, value as object);
 }
 /// <summary>Adds an item to the IRssChannelCollection.</summary>
 public int Add(RssChannel value)
 {
     return base.List.Add(value as object);
 }
		/// <summary>
		/// Create a new collection for the specified channel
		/// </summary>
		/// <param name="parent">Channel for which this collection holds the data.</param>
		public RssItemCollection (RssChannel parent)
		{
			_parent = parent;			
		}
		/// <summary>
		/// Sets the parent channel that the item is assigned to.
		/// </summary>
		/// <remarks>
		/// This internal method is called when the item is assigned to <see cref="RssItemCollection"/>. Do not call directly!
		/// </remarks>
		internal void SetChannel (RssChannel value)
		{
			_rssChannel = value;			
		}
 private void FillListView(RssChannel channel)
 {
     try
     {
         rssItemsListView.BeginUpdate();
         IComparer tmp = rssItemsListView.ListViewItemSorter;
         rssItemsListView.ListViewItemSorter = null;
         rssItemsListView.Items.Clear();
         foreach (RssItem ri in channel.Items)
         {
             ListViewItem i = rssItemsListView.Items.Add(ri.Title);
             i.Name = ri.Title;
             i.SubItems.Add(ri.Category != null ? ri.Category : "");
             i.SubItems.Add(ri.Description != null ? ri.Description.Trim() : "");
             i.SubItems.Add(ri.PubDate.ToString()).Tag = ri.PubDate;
             i.Tag = ri;
             //i.Font = new Font(rssItemsListView.Font, FontStyle.Bold);
         }
         rssItemsListView.ListViewItemSorter = tmp;
         Toolbox.StripeListView(rssItemsListView);
     }
     finally
     {
         rssItemsListView.EndUpdate();
     }
 }
 public GenericListItemCollections GetList(SiteItemEntry entry)
 {
     GenericListItemCollections res = new GenericListItemCollections();
       if (entry.GetValue("all") == "true" && entry.GetValue("level") != "false")
       {
     res.Title = entry.Title;
     foreach (KeyValuePair<string, string> keyValuePair in Feeds)
     {
       SiteItemEntry newentry = new SiteItemEntry();
       BillboardItem videoItem = new BillboardItem();
       newentry.Provider = videoItem.Name;
       newentry.Title = keyValuePair.Key;
       newentry.SetValue("feed", keyValuePair.Key);
       res.Items.Add(new GenericListItem()
       {
     IsFolder = false,
     Title = newentry.Title,
     Tag = newentry
       });
     }
       }
       else
       {
     string rssurl = Feeds[entry.GetValue("feed")];
     res.ItemType = ItemType.Video;
     Uri uri = new Uri(rssurl);
     RssChannel myRssChannel = new RssChannel(uri);
     res.Title = myRssChannel.Title;
     foreach (RssItem item in myRssChannel.Items)
     {
       SiteItemEntry newentry = new SiteItemEntry();
       VideoItem videoItem = new VideoItem();
       newentry.Provider = videoItem.Name;
       newentry.Title = item.Title;
       newentry.SetValue("level", "false");
       string[] title = item.Title.Split(',');
       newentry.SetValue("search", title[1].Trim() + " - " + title[0].Split(':')[1]);
       res.Items.Add(new GenericListItem()
                   {
                     IsFolder = false,
                     Title = newentry.Title,
                     Tag = newentry,
                     LogoUrl = ArtistManager.Instance.GetArtistsImgUrl(GetArtistName(title[1])),
                     DefaultImage = "defaultArtistBig.png"
                   });
     }
       }
       return res;
 }