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; |
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 |
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 |
|
} |