private void AddToFavourites(ChannelListItem room) { if (this.favs.Find(x => x.IP.Equals(room.IP) && x.Port == room.Port) != null) { return; } FavouritesListItem f = room.ToFavouritesItem(); f.CountString = null; this.favs.Add(f); ChannelListViewItem vitem = new ChannelListViewItem(null, 0); this.gfx.RenderChannelListItem(vitem, f); this.g_favs.Add(vitem); this.channelListView2.Items.Add(vitem); this.SaveFavourites(); }
public void RenderChannelListItem(ChannelListViewItem item, ChannelListItem org) { this.RenderChannelListItem(item, org.ToFavouritesItem()); }