private void ToolStripMenuItemDelete_Click(object sender, EventArgs e) { if (customWeightings.ContainsKey(sender.ToString())) { customWeightings.Remove(sender.ToString()); CustomWeightings = customWeightings; } }