Пример #1
0
 private void FilterActiveCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (FilterActiveCheckBox.Checked)
     {
         if (CurrentBrowserFilter != null)
         {
             EntryBrowser.FilterItems(CurrentBrowserFilter.GetFilterPredicate());
         }
     }
     else
     {
         EntryBrowser.UnfilterAll();
     }
 }
Пример #2
0
        private void FilterAdvancedButton_Click(object sender, EventArgs e)
        {
            SelectorFilterOptions filterOptionsForm = new SelectorFilterOptions();

            filterOptionsForm.ShowDialog();

            if (filterOptionsForm.GeneratedFilter != null)
            {
                CurrentBrowserFilter = filterOptionsForm.GeneratedFilter;

                if (FilterActiveCheckBox.Checked)
                {
                    EntryBrowser.FilterItems(CurrentBrowserFilter.GetFilterPredicate());
                }
            }
        }