private void FilterClicked(object sender, System.EventArgs e) { ToolStripMenuItem menuItem = (ToolStripMenuItem)sender; string key = (string)menuItem.Tag; m_filterSettings.Set(key, !m_filterSettings.IsSet(key)); menuItem.Checked = m_filterSettings.IsSet(key); if (FiltersUpdated != null) { FiltersUpdated(); } }