/[xmltv_parser]/trunk/libxmltv/Core/XMLTVParser.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVParser.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTV_PARSER.cs	2013/03/07 11:11:20	24
+++ trunk/libxmltv/Core/XMLTV_PARSER.cs	2013/03/07 11:36:00	25
@@ -1,4 +1,4 @@
-#define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse()
+//#define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse()
 using System;
 using System.Collections.Generic;
 using System.Linq;
@@ -17,10 +17,12 @@
             IXMLTV_LOADER _xmltv;
             if (!Internals.VerifyInstance<IXMLTV_LOADER>(xmltv, out _xmltv)) { return; }
             XMLTV_LOADER = _xmltv;
+            Create();
         }
         #region IXMLTV_PARSER members
         public IXMLTV_LOADER XMLTV_LOADER { get; private set; }
         public void TestParse() { _imp_TestParse(); }
+        public IXMLTVSource Source { get; private set; }
         #endregion
 
         #region Parser Testing Methods
@@ -101,5 +103,17 @@
             }
         }
         #endregion
+
+        #region Creation Methods
+        private void Create()
+        {
+            CreateXMLTVSource();
+        }
+        private void CreateXMLTVSource()
+        {
+            XMLTVSource source = new XMLTVSource(this);
+            Source = source;
+        }
+        #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22