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

Annotation of /trunk/libxmltv/Core/DataSourceBindable.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 121 - (hide annotations) (download)
Sun Mar 10 18:30:13 2013 UTC (6 years, 8 months ago) by william
File size: 1621 byte(s)

1 william 120 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using libxmltv.Interfaces;
6    
7     namespace libxmltv.Core
8     {
9     public class ChannelList : List<IXMLTVChannel>, IDataSourceBindable
10     {
11 william 121 static private List<string> known_columns;
12     static ChannelList()
13     {
14     known_columns = new List<string>();
15     known_columns.Add("Id");
16     known_columns.Add("Name");
17     }
18 william 120 public ChannelList() { }
19    
20     public object CreateBindableDataSource()
21     {
22     object bindable = new object();
23     return bindable;
24     }
25     }
26     public class ProgramList : List<IXMLTVProgram>, IDataSourceBindable
27     {
28 william 121 static private List<string> known_columns;
29     static ProgramList()
30     {
31     known_columns = new List<string>();
32     known_columns.Add("Channel");
33     known_columns.Add("Title");
34     known_columns.Add("Sub-Title");
35     known_columns.Add("Description");
36     known_columns.Add("Start");
37     known_columns.Add("End");
38     }
39 william 120 public ProgramList() { }
40    
41     public object CreateBindableDataSource()
42     {
43     object bindable = new object();
44 william 121
45    
46    
47 william 120 return bindable;
48     }
49     }
50     public class ExtraList : List<IExtraMetaData>, IDataSourceBindable
51     {
52 william 121
53 william 120 public ExtraList() { }
54    
55     public object CreateBindableDataSource()
56     {
57     object bindable = new object();
58     return bindable;
59     }
60     }
61     }

  ViewVC Help
Powered by ViewVC 1.1.22