private void saveAsPresetToolStripMenuItem_Click(object sender, EventArgs e)
{
string s = ShowInput();
if (s.Length > 0)
{
if (customWeightings.ContainsKey(s))
{
if (MessageBox.Show("Preset-Name exists already, overwrite?", "Overwrite Preset?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
customWeightings[s] = Values;
}
else
return;
}
else
customWeightings.Add(s, Values);
CustomWeightings = customWeightings;
}
}