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

Diff of /trunk/libxmltv/Core/XMLTVChannelCollection.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<string, IXMLTVChannel> entries = new Dictionary<string, IXMLTVChannel>();          private Dictionary<string, IXMLTVChannel> entries = new Dictionary<string, IXMLTVChannel>();
15          internal static void CreateInstance(XMLTVRuntimeInstance xmltv)          internal static void CreateInstance(XMLTVRuntimeInstance xmltv)
16          {          {
17              using (XMLTVChannelCollection g = new XMLTVChannelCollection(xmltv)) { g.instance.Channels = g.Collection; }              using (XMLTVChannelCollection g = new XMLTVChannelCollection(xmltv))
18                {
19                    g.instance.Channels = g.Collection;
20                    xmltv_logger.Log.Info.WriteLine(g.ToString());
21                }
22          }          }
23          private XMLTVRuntimeInstance instance;          private XMLTVRuntimeInstance instance;
24          public XMLTVChannelCollection(XMLTVRuntimeInstance xmltv)          public XMLTVChannelCollection(XMLTVRuntimeInstance xmltv)
# Line 53  namespace libxmltv.Core Line 57  namespace libxmltv.Core
57          }          }
58          public override string ToString()          public override string ToString()
59          {          {
60              return string.Format("Channel Count: {0}", Collection == null ? 0 : Collection.Count);              return string.Format("Total Channels Parsed: {0}", Collection == null ? 0 : Collection.Count);
61          }          }
62    
63          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