private void btnRight_Click(object sender, EventArgs e) { if (listEnabled.SelectedIndex != -1) { filter.SetAllowed((ItemType)listEnabled.SelectedItem, false); UpdateListBoxes(); } }