/[xmltv_parser]/trunk/xmltv_parser/main.cs
ViewVC logotype

Diff of /trunk/xmltv_parser/main.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 131 by william, Wed Mar 13 15:16:59 2013 UTC revision 133 by william, Wed Mar 13 15:48:38 2013 UTC
# Line 302  namespace xmltv_parser Line 302  namespace xmltv_parser
302          }          }
303          #endregion          #endregion
304    
305            private void btnFilter_Click(object sender, EventArgs e)
306            {
307                Type data_type;
308                // grab the data from the master source
309                object data = XMLTV.CreateBindingSourceFromData(XMLTV.GetPrograms(), out data_type);
310                if (radio_filter_channelname.Checked)
311                {
312                    XMLTV.CreateFilterFromDataSource(ref data, "channelname", txtFilterText.Text);
313                }
314                else if (radio_filter_title.Checked)
315                {
316                    XMLTV.CreateFilterFromDataSource(ref data, "title", txtFilterText.Text);
317                }
318                else if (radio_filter_subtitle.Checked)
319                {
320                    XMLTV.CreateFilterFromDataSource(ref data, "subtitle", txtFilterText.Text);
321                }
322                else if (radio_filter_description.Checked)
323                {
324                    XMLTV.CreateFilterFromDataSource(ref data, "description", txtFilterText.Text);
325                }
326                else
327                {
328                    // unknown filter
329                    gLog.Warn.WriteLine("Unkown filter value used.  Was not: channelname, title, subtitle, or description.");
330                }
331                dataGrid.DataSource = data;
332            }
333    
334                
335      }      }
336  }  }

Legend:
Removed from v.131  
changed lines
  Added in v.133

  ViewVC Help
Powered by ViewVC 1.1.22