using System; using System.Collections.Generic; using System.Linq; using System.Text; using libxmltv.Interfaces; using System.ComponentModel; namespace libxmltv.Core { /// /// Main class: Creates the XMLTV Loader /// public static class XMLTV { static XMLTV() { xmltv_logger.Initialize(); } public static IXMLTVRuntimeInstance CreateInstance(string xml_file) { return CreateInstance(xml_file, null); } public static IXMLTVRuntimeInstance CreateInstance(string xml_file, EventHandler t) { return new XMLTVRuntimeInstance(xml_file,t); } //private static void CreateLoader(string xml_file, out XMLTVRuntimeInstance xmltv) //{ // //XMLTV_LOADER loader = new XMLTV_LOADER(xml_file); // //return loader; // //XMLTVRuntimeInstance instance = CreateInstance(xml_file); // //return instance; // //xmltv = CreateInstance(xml_file); // xmltv = null; //} //private static void CreateParser(out XMLTVRuntimeInstance xmltv) //{ // //XMLTV_PARSER parser = new XMLTV_PARSER(xmltv); // //return parser; // xmltv = null; //} ////private static IXMLTV_PARSER GetParser(object xmltv) ////{ //// IXMLTV_PARSER _xmltv; //// if (!Internals.VerifyInstance(xmltv, out _xmltv)) { return null; } //// return _xmltv; ////} } }