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; |
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] |