Beispiel #1
0
        private void cmdInit_Click(object sender, EventArgs e)
        {
            m_tvdbHandler.InitCache();
            m_tvdbHandler.UserInfo = new TvdbLib.Data.TvdbUser("DieBagger", txtUserId.Text);
            List <int> favorites = m_tvdbHandler.GetUserFavouritesList();

            favorites.ForEach(delegate(int f)
            {
                ListViewItem item = new ListViewItem(f.ToString());
                if (m_tvdbHandler.IsCached(f, TvdbLanguage.DefaultLanguage, true, true, true))
                {
                    item.BackColor = Color.LightGreen;
                }
                else
                {
                    item.BackColor = Color.White;
                }
                item.Tag = f;
                lvFavorites.Items.Add(item);
            });
        }