コード例 #1
0
 /// <summary>
 /// Constructor for XmlCacheProvider
 /// </summary>
 /// <param name="rootFolder">This is the folder on the disk where all the information are stored</param>
 public XmlCacheProvider(String rootFolder)
 {
     Initialised = false;
     _xmlWriter  = new TvdbXmlWriter();
     _xmlReader  = new TvdbXmlReader();
     _rootFolder = rootFolder;
 }
コード例 #2
0
 /// <summary>
 /// Constructor for XmlCacheProvider
 /// </summary>
 /// <param name="rootFolder">This is the folder on the disk where all the information are stored</param>
 public XmlCacheProvider(String rootFolder)
 {
     Initialised = false;
     _xmlWriter  = new TvdbXmlWriter();
     _xmlReader  = new TvdbXmlReader();
     _rootFolder = rootFolder.TrimEnd(Path.DirectorySeparatorChar).TrimEnd(Path.AltDirectorySeparatorChar);
 }
コード例 #3
0
 /// <summary>
 /// Constructor for XmlCacheProvider
 /// </summary>
 /// <param name="_rootFolder">This is the folder on the disk where all the information are stored</param>
 public XmlCacheProvider(String _rootFolder)
 {
     m_xmlWriter  = new TvdbXmlWriter();
     m_xmlReader  = new TvdbXmlReader();
     m_rootFolder = _rootFolder;
     if (!Directory.Exists(_rootFolder))
     {
         Directory.CreateDirectory(_rootFolder);
     }
 }
コード例 #4
0
 /// <summary>
 /// Constructor for XmlCacheProvider
 /// </summary>
 /// <param name="_rootFolder">This is the folder on the disk where all the information are stored</param>
 public XmlCacheProvider(String _rootFolder)
 {
     m_xmlWriter  = new TvdbXmlWriter();
     m_xmlReader  = new TvdbXmlReader();
     m_rootFolder = _rootFolder;
 }