/[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/14 13:08:20	141
+++ trunk/libxmltv/Core/DataSourceBindable.cs	2013/03/14 13:13:46	142
@@ -163,9 +163,8 @@
                     {
                         case "channelnumber": ordered = list.ToList().FindAll(s => s.ChannelNumber == Convert.ToInt32(filtertext)); break;
                         case "channelname": ordered = list.ToList().FindAll(s => s.ChannelName.ToLower().Contains(filtertext)); break;
-                        case "start":
-                        case "stop":
-                            throw new ArgumentException("columnname", string.Format("Filtering for column: '{0}' has not been implemented", columnname));
+                        case "start": ordered = list.ToList().FindAll(s => s.Start.ToLower().Contains(filtertext)); break;
+                        case "stop": ordered = list.ToList().FindAll(s => s.Stop.ToLower().Contains(filtertext)); break;
                         case "description": ordered = list.ToList().FindAll(s => s.Description.ToLower().Contains(filtertext)); break;
                         case "title": ordered = list.ToList().FindAll(s => s.Title.ToLower().Contains(filtertext)); break;
                         case "subtitle": ordered = list.ToList().FindAll(s => s.SubTitle.ToLower().Contains(filtertext)); break;

 

  ViewVC Help
Powered by ViewVC 1.1.22