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

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

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

--- trunk/libxmltv/Core/DataSourceBindable.cs	2013/03/10 18:19:12	120
+++ trunk/libxmltv/Core/DataSourceBindable.cs	2013/03/10 18:30:13	121
@@ -8,6 +8,13 @@
 {
     public class ChannelList : List<IXMLTVChannel>, IDataSourceBindable
     {
+        static private List<string> known_columns;
+        static ChannelList()
+        {
+            known_columns = new List<string>();
+            known_columns.Add("Id");
+            known_columns.Add("Name");
+        }
         public ChannelList() { }
 
         public object CreateBindableDataSource()
@@ -18,16 +25,31 @@
     }
     public class ProgramList : List<IXMLTVProgram>, IDataSourceBindable
     {
+        static private List<string> known_columns;
+        static ProgramList()
+        {
+            known_columns = new List<string>();
+            known_columns.Add("Channel");
+            known_columns.Add("Title");
+            known_columns.Add("Sub-Title");
+            known_columns.Add("Description");
+            known_columns.Add("Start");
+            known_columns.Add("End");
+        }
         public ProgramList() { }
 
         public object CreateBindableDataSource()
         {
             object bindable = new object();
+
+            
+
             return bindable;
         }
     }
     public class ExtraList : List<IExtraMetaData>, IDataSourceBindable
     {
+
         public ExtraList() { }
 
         public object CreateBindableDataSource()

 

  ViewVC Help
Powered by ViewVC 1.1.22