55 |
found_field = true; |
found_field = true; |
56 |
try |
try |
57 |
{ |
{ |
58 |
xmltv_logger.Verbose.Debug.WriteLine("Updating instance with program information: {0}", this.ToString()); |
|
59 |
var list = (List<IXMLTVProgram>)field.GetValue(this.GetInstance()); |
var list = (List<IXMLTVProgram>)field.GetValue(this.GetInstance()); |
60 |
this.Id = list.Count + 1; |
this.Id = list.Count + 1; |
61 |
list.Add(this); |
list.Add(this); |
62 |
|
xmltv_logger.Verbose.Debug.WriteLine("Updating instance with program information: {0}", this.ToString()); |
63 |
field.SetValue(this.GetInstance(), list); |
field.SetValue(this.GetInstance(), list); |
64 |
break; |
break; |
65 |
} |
} |