/[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 19:34:06	124
+++ trunk/libxmltv/Core/DataSourceBindable.cs	2013/03/10 19:44:49	125
@@ -8,7 +8,7 @@
 {
     public class ChannelList : List<IXMLTVChannel>, IDataSourceBindable
     {
-        private class ChannelDefintion
+        private class ChannelDefintion : IDataSourceSortable, IDataSourceFilterable
         {
             public ChannelDefintion()
             {
@@ -17,6 +17,19 @@
             }
             public string ChannelId { get; internal set; }
             public string ChannelName { get; internal set; }
+
+            #region IDataSourceSortable members
+            public object Sort(object source, params string[] args)
+            {
+                return source;
+            }
+            #endregion
+            #region IDataSourceFilterable members
+            public object Filter(object source, params string[] args)
+            {
+                return source;
+            }
+            #endregion
         }
         //static private List<string> known_columns;
         //static ChannelList()
@@ -52,7 +65,7 @@
     }
     public class ProgramList : List<IXMLTVProgram>, IDataSourceBindable
     {
-        private class ProgramDefintion
+        private class ProgramDefintion : IDataSourceSortable, IDataSourceFilterable
         {
             public ProgramDefintion()
             {
@@ -70,7 +83,20 @@
             public DateTime Stop { get; internal set; }
             public string Title { get; internal set; }
             public string SubTitle { get; internal set; }
-            public string Description { get; internal set; }    
+            public string Description { get; internal set; }
+
+            #region IDataSourceSortable members
+            public object Sort(object source, params string[] args)
+            {
+                return source;
+            }
+            #endregion
+            #region IDataSourceFilterable members
+            public object Filter(object source, params string[] args)
+            {
+                return source;
+            }
+            #endregion
         }
         public ProgramList() { }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22