コード例 #1
0
 private void Tester_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (m_tvdbHandler != null)
     {
         m_tvdbHandler.CloseCache();
     }
 }
コード例 #2
0
ファイル: Window2.xaml.cs プロジェクト: Dimidx/htpcutils
        public ListeSeries()
        {
            TvdbHandler tvdbHandler = new TvdbHandler(new XmlCacheProvider(System.Environment.CurrentDirectory + @"\Cache\Series\"), "69C6FDC7E5F4B985");

            tvdbHandler.InitCache();
            TvdbUser user = new TvdbUser("Danone-KiD", "401D8B31F9832AA3");

            tvdbHandler.UserInfo = user;
            tvdbHandler.UserInfo.UserPreferredLanguage = tvdbHandler.GetPreferredLanguage();
            //get list of all favorites and print them to console
            List <int> favList = tvdbHandler.GetUserFavouritesList();

            foreach (int id in favList)
            {
                //TvdbSeries s = tvdbHandler.GetSeries(id, tvdbHandler.UserInfo.UserPreferredLanguage, true, true, true);
                Add(new Serie(tvdbHandler, id));
            }
            //Thumb t = new Thumb("http://thetvdb.com/banners/" + s.BannerPath);
            //this.DataContext = s;
            //lstSaisons.ItemsSource = seasonList;
            tvdbHandler.CloseCache();
        }
コード例 #3
0
ファイル: MemoryTest.cs プロジェクト: tanstaafl2014/tvdblib
 private void MemoryTest_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_tvdbHandler.CloseCache();
 }
コード例 #4
0
 public void Dispose()
 {
     _tvDbclient.CloseCache();
 }
コード例 #5
0
 private void cmdSaveCache_Click(object sender, EventArgs e)
 {
     m_tvdbHandler.CloseCache();
 }