Exemplo n.º 1
0
        private void cmdInit_Click(object sender, EventArgs e)
        {
            m_tvdbHandler = new TvdbHandler(new XmlCacheProvider("C:\\test"), Resources.API_KEY);
            m_series      = m_tvdbHandler.GetBasicSeries(72129, TvdbLanguage.DefaultLanguage, true);
            int count = 0;

            fanartControl1.NumberOfImages = m_series.FanartBanners.Count;
            foreach (TvdbFanartBanner fb in m_series.FanartBanners)
            {
                if (fb.IsThumbLoaded || fb.LoadThumb())
                {
                    fanartControl1.SetImage(fb, count);
                    count++;
                }
            }
        }