private void ToolStripMenuItemCustom_Click(object sender, EventArgs e) { if (customWeightings.ContainsKey(sender.ToString())) { Values = customWeightings[sender.ToString()]; } }