private void Tester_FormClosing(object sender, FormClosingEventArgs e) { if (m_tvdbHandler != null) { m_tvdbHandler.CloseCache(); } }
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(); }
private void MemoryTest_FormClosed(object sender, FormClosedEventArgs e) { m_tvdbHandler.CloseCache(); }
public void Dispose() { _tvDbclient.CloseCache(); }
private void cmdSaveCache_Click(object sender, EventArgs e) { m_tvdbHandler.CloseCache(); }