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

Diff of /trunk/libxmltv/Core/XMLTVChannel.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 77 by william, Sat Mar 9 11:28:41 2013 UTC revision 83 by william, Sat Mar 9 12:41:07 2013 UTC
# Line 5  using System.Text; Line 5  using System.Text;
5  using libxmltv.Interfaces;  using libxmltv.Interfaces;
6  using System.Xml.Linq;  using System.Xml.Linq;
7  using System.Reflection;  using System.Reflection;
8    using System.IO;
9    using System.Diagnostics;
10    
11  namespace libxmltv.Core  namespace libxmltv.Core
12  {  {
13      [Serializable]      [Serializable]
14      internal class XMLTVChannel : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVChannel      internal class XMLTVChannel : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVChannel
15      {      {
16          public XMLTVChannel() : base(null,XMLTVConstants.CHANNEL_ELEMENT)          public XMLTVChannel()
17                : base(null, XMLTVConstants.CHANNEL_ELEMENT)
18          {          {
19              Id = string.Empty;              Id = string.Empty;
20              Number = 0;              Number = 0;
# Line 21  namespace libxmltv.Core Line 24  namespace libxmltv.Core
24          public XMLTVChannel(XMLTVRuntimeInstance instance, XElement node)          public XMLTVChannel(XMLTVRuntimeInstance instance, XElement node)
25              : base(instance, XMLTVConstants.CHANNEL_ELEMENT)              : base(instance, XMLTVConstants.CHANNEL_ELEMENT)
26          {          {
27              xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVChannel");              try
28              Create(node);              {
29              xmltv_logger.Verbose.Debug.WriteLine("Created Instance of XMLTVChannel");                  xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVChannel");
30              UpdateInstance();                              Create(node);
31                    xmltv_logger.Verbose.Debug.WriteLine("Created Instance of XMLTVChannel");
32                    UpdateInstance();
33                }
34                catch (IOException ex) { Debug.WriteLine(ex.ToString()); }
35          }          }
36          #region IXMLTVChannel members          #region IXMLTVChannel members
37          public string Id { get; private set; }          public string Id { get; private set; }
# Line 48  namespace libxmltv.Core Line 55  namespace libxmltv.Core
55                  {                  {
56                      found_field = true;                      found_field = true;
57                      try                      try
58                      {                                                                      {
59                          var list = (List<IXMLTVChannel>)field.GetValue(this.GetInstance());                          var list = (List<IXMLTVChannel>)field.GetValue(this.GetInstance());
60                          list.Add(this);                          list.Add(this);
61                          xmltv_logger.Verbose.Debug.WriteLine("Updating instance with channel information: {0}", this.ToString());                          xmltv_logger.Verbose.Debug.WriteLine("Updating instance with channel information: {0}", this.ToString());

Legend:
Removed from v.77  
changed lines
  Added in v.83

  ViewVC Help
Powered by ViewVC 1.1.22