/[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 43 by william, Fri Mar 8 03:09:49 2013 UTC revision 44 by william, Fri Mar 8 03:36:44 2013 UTC
# Line 9  using System.Windows.Forms; Line 9  using System.Windows.Forms;
9    
10  namespace libxmltv.Core  namespace libxmltv.Core
11  {  {
12      internal class XMLTVChannelCollection      internal class XMLTVChannelCollection : IDisposable
13      {      {
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)
16            {
17                using (XMLTVChannelCollection g = new XMLTVChannelCollection(xmltv)) { g.instance.Channels = g.Collection; }
18            }
19          private XMLTVRuntimeInstance instance;          private XMLTVRuntimeInstance instance;
20          public XMLTVChannelCollection(XMLTVRuntimeInstance xmltv)          public XMLTVChannelCollection(XMLTVRuntimeInstance xmltv)
21          {          {
# Line 41  namespace libxmltv.Core Line 45  namespace libxmltv.Core
45                  entries.Add(channel.Id, channel);                  entries.Add(channel.Id, channel);
46                  Application.DoEvents();                  Application.DoEvents();
47              }              }
48                //instance.Channels = Collection;
49          }          }
50          public override string ToString()          public override string ToString()
51          {          {
52              return string.Format("Channel Count: {0}", Collection == null ? 0 : Collection.Count);              return string.Format("Channel Count: {0}", Collection == null ? 0 : Collection.Count);
53          }          }
54    
55            public void Dispose()
56            {
57                //throw new NotImplementedException();
58            }
59      }      }
60      [Serializable]      [Serializable]
61      internal class Channel : IXMLTVChannel      internal class Channel : IXMLTVChannel

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.22