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 |
{ |
{ |
26 |
public XMLTVProgram(XMLTVRuntimeInstance instance, XElement node) |
public XMLTVProgram(XMLTVRuntimeInstance instance, XElement node) |
27 |
: base(instance, XMLTVConstants.PROGRAM_ELEMENT) |
: base(instance, XMLTVConstants.PROGRAM_ELEMENT) |
28 |
{ |
{ |
29 |
|
try { |
30 |
xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVProgram"); |
xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVProgram"); |
31 |
Create(node); |
Create(node); |
32 |
xmltv_logger.Verbose.Debug.WriteLine("Created Instance of XMLTVProgram"); |
xmltv_logger.Verbose.Debug.WriteLine("Created Instance of XMLTVProgram"); |
33 |
UpdateInstance(); |
UpdateInstance(); |
34 |
|
} |
35 |
|
catch (IOException ex) { Debug.WriteLine(ex.ToString()); } |
36 |
} |
} |
37 |
#region IXMLTVProgram members |
#region IXMLTVProgram members |
38 |
public int Id { get; set; } |
public int Id { get; set; } |