1 |
using System; |
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using libxmltv.Interfaces; |
6 |
using System.ComponentModel; |
7 |
|
8 |
namespace libxmltv.Core |
9 |
{ |
10 |
/// <summary> |
11 |
/// Main class: Creates the XMLTV Loader |
12 |
/// </summary> |
13 |
public static class XMLTV |
14 |
{ |
15 |
static XMLTV() { xmltv_logger.Initialize(); } |
16 |
|
17 |
private static XMLTVRuntimeInstance instance; |
18 |
public static IXMLTVRuntimeInstance GetInstance() { return InternalGetInstance(); } |
19 |
internal static XMLTVRuntimeInstance InternalGetInstance() { return instance; } |
20 |
public static void CreateInstance(string xml_file) { CreateInstance(xml_file, null); } |
21 |
public static void CreateInstance(string xml_file, EventHandler<CancelEventArgs> t) { instance = new XMLTVRuntimeInstance(xml_file, t); } |
22 |
public static IXMLTVSerializer<IXMLTVRuntimeInstance> GetSerializer() {return InternalGetInstance().Serializer; } |
23 |
} |
24 |
} |
25 |
|
26 |
|