/// <summary> /// Save the language to cache /// </summary> /// <param name="_languageList"></param> public void SaveToCache(List <TvdbLanguage> _languageList) { if (_languageList != null && _languageList.Count > 0) { m_xmlWriter.WriteLanguageFile(_languageList, m_rootFolder + "\\languages.xml"); } }
/// <summary> /// Save the language to cache /// </summary> /// <param name="_languageList">List of languages that are available on http://thetvdb.com</param> public void SaveToCache(List <TvdbLanguage> _languageList) { if (_languageList != null && _languageList.Count > 0) { if (!Directory.Exists(m_rootFolder)) { Directory.CreateDirectory(m_rootFolder); } m_xmlWriter.WriteLanguageFile(_languageList, m_rootFolder + Path.DirectorySeparatorChar + "languages.xml"); } }
/// <summary> /// Save the language to cache /// </summary> /// <param name="languageList">List of languages that are available on http://thetvdb.com</param> public void SaveToCache(List <TvdbLanguage> languageList) { if (languageList != null && languageList.Count > 0) { if (!Directory.Exists(_rootFolder)) { Directory.CreateDirectory(_rootFolder); } _languageLock.EnterWriteLock(); try { _xmlWriter.WriteLanguageFile(languageList, _rootFolder + Path.DirectorySeparatorChar + "languages.xml"); } finally { _languageLock.ExitWriteLock(); } } }