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

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

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

revision 47 by william, Fri Mar 8 04:01:25 2013 UTC revision 48 by william, Fri Mar 8 04:24:01 2013 UTC
# Line 14  namespace libxmltv.Core Line 14  namespace libxmltv.Core
14          private Dictionary<int, IXMLTVProgram> entries = new Dictionary<int, IXMLTVProgram>();          private Dictionary<int, IXMLTVProgram> entries = new Dictionary<int, IXMLTVProgram>();
15          internal static void CreateInstance(XMLTVRuntimeInstance xmltv)          internal static void CreateInstance(XMLTVRuntimeInstance xmltv)
16          {          {
17              using (XMLTVProgramCollection g = new XMLTVProgramCollection(xmltv)) { g.instance.Programs = g.Collection; }              using (XMLTVProgramCollection g = new XMLTVProgramCollection(xmltv))
18                {
19                    g.instance.Programs = g.Collection;
20                    xmltv_logger.Log.Info.WriteLine(g.ToString());
21                }
22          }          }
23          private XMLTVRuntimeInstance instance;          private XMLTVRuntimeInstance instance;
24          protected XMLTVProgramCollection(XMLTVRuntimeInstance xmltv)          protected XMLTVProgramCollection(XMLTVRuntimeInstance xmltv)
# Line 112  namespace libxmltv.Core Line 116  namespace libxmltv.Core
116          }          }
117          public override string ToString()          public override string ToString()
118          {          {
119              return string.Format("Program Count: {0}", Collection == null ? 0 : Collection.Count);              return string.Format("Total Programs Parsed: {0}", Collection == null ? 0 : Collection.Count);
120          }          }
121    
122          public void Dispose()          public void Dispose()

Legend:
Removed from v.47  
changed lines
  Added in v.48

  ViewVC Help
Powered by ViewVC 1.1.22