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

Comparing trunk/libxmltv/Core/XMLTV_PARSER.cs (file contents):
Revision 24 by william, Thu Mar 7 11:11:20 2013 UTC vs.
Revision 25 by william, Thu Mar 7 11:36:00 2013 UTC

# Line 1 | Line 1
1 < #define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse()
1 > //#define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse()
2   using System;
3   using System.Collections.Generic;
4   using System.Linq;
# Line 17 | Line 17 | namespace libxmltv.Core
17              IXMLTV_LOADER _xmltv;
18              if (!Internals.VerifyInstance<IXMLTV_LOADER>(xmltv, out _xmltv)) { return; }
19              XMLTV_LOADER = _xmltv;
20 +            Create();
21          }
22          #region IXMLTV_PARSER members
23          public IXMLTV_LOADER XMLTV_LOADER { get; private set; }
24          public void TestParse() { _imp_TestParse(); }
25 +        public IXMLTVSource Source { get; private set; }
26          #endregion
27  
28          #region Parser Testing Methods
# Line 101 | Line 103 | namespace libxmltv.Core
103              }
104          }
105          #endregion
106 +
107 +        #region Creation Methods
108 +        private void Create()
109 +        {
110 +            CreateXMLTVSource();
111 +        }
112 +        private void CreateXMLTVSource()
113 +        {
114 +            XMLTVSource source = new XMLTVSource(this);
115 +            Source = source;
116 +        }
117 +        #endregion
118      }
119   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines