ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTV_LOADER.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTV_LOADER.cs (file contents):
Revision 15 by william, Thu Mar 7 09:05:18 2013 UTC vs.
Revision 16 by william, Thu Mar 7 09:26:43 2013 UTC

# Line 15 | Line 15 | namespace libxmltv.Core
15      {
16          public static object CreateLoader(string xml_file)
17          {
18 <            xmltv_logger.Initialize();
19 <            xmltv_logger.Log.Debug.WriteLine("Logged from XMLTV.CreateLoader");
18 >            XMLTV_LOGGER.Initialize();
19              XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);
20              return loader;
21          }
# Line 47 | Line 46 | namespace libxmltv.Core
46          private string xmlfile = string.Empty;
47          public XMLTV_LOADER(string xml_file)
48          {
49 <            xmlfile = xml_file;            
49 >            xmlfile = xml_file;
50 >            LoadXml();
51          }
52          #region IXMLTV_LOADER
53          public FileInfo XmlFile { get { return new FileInfo(xmlfile); } }
54          #endregion
55 +
56 +        private void LoadXml()
57 +        {
58 +            XMLTV_LOGGER.Log.Info.WriteLine("Loading XMLTV File: {0}", XmlFile.Name);
59 +            XMLTV_LOGGER.Log.Warn.WriteLine("XML File Loading has not been implemented yet!");
60 +        }
61      }
62   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines