/[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 132 by william, Wed Mar 13 15:39:18 2013 UTC revision 134 by william, Wed Mar 13 15:50:07 2013 UTC
# Line 4  using System.Linq; Line 4  using System.Linq;
4  using System.Text;  using System.Text;
5  using libxmltv.Interfaces;  using libxmltv.Interfaces;
6  using System.Collections;  using System.Collections;
7    using Enterprise.Logging;
8    
9  namespace libxmltv.Core  namespace libxmltv.Core
10  {  {
# Line 153  namespace libxmltv.Core Line 154  namespace libxmltv.Core
154                          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;
155                      }                                        }                  
156                      list = new ProgramDefinitionList(ordered.ToList());                      list = new ProgramDefinitionList(ordered.ToList());
157                        if (list.Count == 0)
158                        {
159                            list = (ProgramDefinitionList)source;
160                            gLog.Warn.WriteLine("Filering by: column='{0}' with filer='{1}' returned no data",columnname, filtertext);
161                        }
162                  }                  }
163                  catch (Exception ex) { throw ex; }                  catch (Exception ex) { throw ex; }
164                  if (list != null) { source = list; }                  if (list != null) { source = list; }

Legend:
Removed from v.132  
changed lines
  Added in v.134

  ViewVC Help
Powered by ViewVC 1.1.22