/[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

revision 124 by william, Sun Mar 10 19:34:06 2013 UTC revision 125 by william, Sun Mar 10 19:44:49 2013 UTC
# Line 8  namespace libxmltv.Core Line 8  namespace libxmltv.Core
8  {  {
9      public class ChannelList : List<IXMLTVChannel>, IDataSourceBindable      public class ChannelList : List<IXMLTVChannel>, IDataSourceBindable
10      {      {
11          private class ChannelDefintion          private class ChannelDefintion : IDataSourceSortable, IDataSourceFilterable
12          {          {
13              public ChannelDefintion()              public ChannelDefintion()
14              {              {
# Line 17  namespace libxmltv.Core Line 17  namespace libxmltv.Core
17              }              }
18              public string ChannelId { get; internal set; }              public string ChannelId { get; internal set; }
19              public string ChannelName { get; internal set; }              public string ChannelName { get; internal set; }
20    
21                #region IDataSourceSortable members
22                public object Sort(object source, params string[] args)
23                {
24                    return source;
25                }
26                #endregion
27                #region IDataSourceFilterable members
28                public object Filter(object source, params string[] args)
29                {
30                    return source;
31                }
32                #endregion
33          }          }
34          //static private List<string> known_columns;          //static private List<string> known_columns;
35          //static ChannelList()          //static ChannelList()
# Line 52  namespace libxmltv.Core Line 65  namespace libxmltv.Core
65      }      }
66      public class ProgramList : List<IXMLTVProgram>, IDataSourceBindable      public class ProgramList : List<IXMLTVProgram>, IDataSourceBindable
67      {      {
68          private class ProgramDefintion          private class ProgramDefintion : IDataSourceSortable, IDataSourceFilterable
69          {          {
70              public ProgramDefintion()              public ProgramDefintion()
71              {              {
# Line 70  namespace libxmltv.Core Line 83  namespace libxmltv.Core
83              public DateTime Stop { get; internal set; }              public DateTime Stop { get; internal set; }
84              public string Title { get; internal set; }              public string Title { get; internal set; }
85              public string SubTitle { get; internal set; }              public string SubTitle { get; internal set; }
86              public string Description { get; internal set; }                  public string Description { get; internal set; }
87    
88                #region IDataSourceSortable members
89                public object Sort(object source, params string[] args)
90                {
91                    return source;
92                }
93                #endregion
94                #region IDataSourceFilterable members
95                public object Filter(object source, params string[] args)
96                {
97                    return source;
98                }
99                #endregion
100          }          }
101          public ProgramList() { }          public ProgramList() { }
102    

Legend:
Removed from v.124  
changed lines
  Added in v.125

  ViewVC Help
Powered by ViewVC 1.1.22