private void FilterActiveCheckBox_CheckedChanged(object sender, EventArgs e) { if (FilterActiveCheckBox.Checked) { if (CurrentBrowserFilter != null) { EntryBrowser.FilterItems(CurrentBrowserFilter.GetFilterPredicate()); } } else { EntryBrowser.UnfilterAll(); } }
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()); } } }