/[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/13 15:48:38	133
+++ trunk/libxmltv/Core/DataSourceBindable.cs	2013/03/13 15:50:07	134
@@ -4,6 +4,7 @@
 using System.Text;
 using libxmltv.Interfaces;
 using System.Collections;
+using Enterprise.Logging;
 
 namespace libxmltv.Core
 {
@@ -153,6 +154,11 @@
                         case "subtitle": ordered = list.ToList().FindAll(s => s.SubTitle.ToLower().Contains(filtertext)); break;
                     }                   
                     list = new ProgramDefinitionList(ordered.ToList());
+                    if (list.Count == 0)
+                    {
+                        list = (ProgramDefinitionList)source;
+                        gLog.Warn.WriteLine("Filering by: column='{0}' with filer='{1}' returned no data",columnname, filtertext);
+                    }
                 }
                 catch (Exception ex) { throw ex; }
                 if (list != null) { source = list; }

 

  ViewVC Help
Powered by ViewVC 1.1.22