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

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

  ViewVC Help
Powered by ViewVC 1.1.22