/[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 141 by william, Thu Mar 14 13:08:20 2013 UTC revision 142 by william, Thu Mar 14 13:13:46 2013 UTC
# Line 163  namespace libxmltv.Core Line 163  namespace libxmltv.Core
163                      {                      {
164                          case "channelnumber": ordered = list.ToList().FindAll(s => s.ChannelNumber == Convert.ToInt32(filtertext)); break;                          case "channelnumber": ordered = list.ToList().FindAll(s => s.ChannelNumber == Convert.ToInt32(filtertext)); break;
165                          case "channelname": ordered = list.ToList().FindAll(s => s.ChannelName.ToLower().Contains(filtertext)); break;                          case "channelname": ordered = list.ToList().FindAll(s => s.ChannelName.ToLower().Contains(filtertext)); break;
166                          case "start":                          case "start": ordered = list.ToList().FindAll(s => s.Start.ToLower().Contains(filtertext)); break;
167                          case "stop":                          case "stop": ordered = list.ToList().FindAll(s => s.Stop.ToLower().Contains(filtertext)); break;
                             throw new ArgumentException("columnname", string.Format("Filtering for column: '{0}' has not been implemented", columnname));  
168                          case "description": ordered = list.ToList().FindAll(s => s.Description.ToLower().Contains(filtertext)); break;                          case "description": ordered = list.ToList().FindAll(s => s.Description.ToLower().Contains(filtertext)); break;
169                          case "title": ordered = list.ToList().FindAll(s => s.Title.ToLower().Contains(filtertext)); break;                          case "title": ordered = list.ToList().FindAll(s => s.Title.ToLower().Contains(filtertext)); break;
170                          case "subtitle": ordered = list.ToList().FindAll(s => s.SubTitle.ToLower().Contains(filtertext)); break;                          case "subtitle": ordered = list.ToList().FindAll(s => s.SubTitle.ToLower().Contains(filtertext)); break;

Legend:
Removed from v.141  
changed lines
  Added in v.142

  ViewVC Help
Powered by ViewVC 1.1.22