private void chklstbCategories_ItemCheck(object sender, ItemCheckEventArgs e) { if (e.Index >= 0) { if (e.NewValue == CheckState.Checked) { IRSSCategory cat = chklstbCategories.SelectedItem as IRSSCategory; if (cat != null) { Feed.AddToCategory(cat); } } else if (e.NewValue == CheckState.Unchecked) { IRSSCategory cat = chklstbCategories.SelectedItem as IRSSCategory; if (cat != null) { Feed.RemoveFromCategory(cat); } } OnFeedActiveStatusChanged(this, new FeedArgs(FeedsContainer[e.Index], false)); } }