protected virtual void OnAddClick(object sender, System.EventArgs e)
        {
            FilterDialog dlg = new FilterDialog();

            dlg.Filter = new FilterList();
            dlg.Title  = Catalog.GetString("Add Condition...");
            if ((int)ResponseType.Ok == dlg.Run())
            {
                m_Store.AppendValues(dlg.Filter);
                this.QueueDraw();
            }
            dlg.Hide();
            dlg.Dispose();
        }
 protected virtual void OnEditClicked(object sender, System.EventArgs e)
 {
     Gtk.TreeIter  itr;
     Gtk.TreeModel model;
     if (conditionList.Selection.GetSelected(out model, out itr))
     {
         FilterList   condition = (FilterList)model.GetValue(itr, 0);
         FilterDialog dlg       = new FilterDialog();
         dlg.Title  = Catalog.GetString("Edit Condition...");
         dlg.Filter = condition;
         if ((int)ResponseType.Ok == dlg.Run())
         {
             m_Store.SetValue(itr, 0, dlg.Filter);
         }
     }
 }
 protected virtual void OnAddClick(object sender, System.EventArgs e)
 {
     FilterDialog dlg = new FilterDialog();
     dlg.Filter = new FilterList();
     dlg.Title = Catalog.GetString("Add Condition...");
     if ((int) ResponseType.Ok == dlg.Run())
     {
         m_Store.AppendValues(dlg.Filter);
         this.QueueDraw();
     }
     dlg.Hide();
     dlg.Dispose();
 }
 protected virtual void OnEditClicked(object sender, System.EventArgs e)
 {
     Gtk.TreeIter itr;
     Gtk.TreeModel model;
     if (conditionList.Selection.GetSelected (out model, out itr))
     {
         FilterList condition = (FilterList)model.GetValue (itr, 0);
         FilterDialog dlg = new FilterDialog();
         dlg.Title = Catalog.GetString("Edit Condition...");
         dlg.Filter = condition;
         if ((int) ResponseType.Ok == dlg.Run())
         {
             m_Store.SetValue(itr, 0, dlg.Filter);
         }
     }
 }
 public void AddAdvancedFilter()
 {
     FilterDialog dlg = new FilterDialog();
     dlg.MainWin = this;
     dlg.Filter = m_app.CacheStore.AdvancedFilters;
     if (((int) ResponseType.Ok) == dlg.Run())
     {
         m_app.CacheStore.AdvancedFilters = dlg.Filter;
         CacheList.Refresh();
     }
 }