ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTVChannelCollection.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTVChannelCollection.cs (file contents):
Revision 43 by william, Fri Mar 8 03:09:49 2013 UTC vs.
Revision 44 by william, Fri Mar 8 03:36:44 2013 UTC

# Line 9 | Line 9 | using System.Windows.Forms;
9  
10   namespace libxmltv.Core
11   {
12 <    internal class XMLTVChannelCollection
12 >    internal class XMLTVChannelCollection : IDisposable
13      {
14          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;
20          public XMLTVChannelCollection(XMLTVRuntimeInstance xmltv)
21          {
# Line 41 | Line 45 | namespace libxmltv.Core
45                  entries.Add(channel.Id, channel);
46                  Application.DoEvents();
47              }
48 +            //instance.Channels = Collection;
49          }
50          public override string ToString()
51          {
52              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]
61      internal class Channel : IXMLTVChannel

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines