示例#1
0
        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();
        }
示例#2
0
 public void RenderChannelListItem(ChannelListViewItem item, ChannelListItem org)
 {
     this.RenderChannelListItem(item, org.ToFavouritesItem());
 }