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

Comparing trunk/libxmltv/Core/XMLTVProgramCollection.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 XMLTVProgramCollection
12 >    internal class XMLTVProgramCollection : IDisposable
13      {
14          private Dictionary<int, IXMLTVProgram> entries = new Dictionary<int, IXMLTVProgram>();
15 +        internal static void CreateInstance(XMLTVRuntimeInstance xmltv)
16 +        {
17 +            using (XMLTVProgramCollection g = new XMLTVProgramCollection(xmltv)) { g.instance.Programs = g.Collection; }
18 +        }
19          private XMLTVRuntimeInstance instance;
20 <        public XMLTVProgramCollection(XMLTVRuntimeInstance xmltv)
20 >        protected XMLTVProgramCollection(XMLTVRuntimeInstance xmltv)
21          {
22              XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVProgramCollection");
23              //IXMLTV_PARSER _xmltv;
# Line 100 | Line 104 | namespace libxmltv.Core
104                  Application.DoEvents();
105                  index++;
106              }
107 +            //instance.Programs = Collection;
108          }
109          public override string ToString()
110          {
111              return string.Format("Program Count: {0}", Collection == null ? 0 : Collection.Count);
112 <            return string.Empty;
112 >        }
113 >
114 >        public void Dispose()
115 >        {
116 >            //throw new NotImplementedException();
117          }
118      }
119      [Serializable]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines