private void ConfigForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if (modified)
{
DialogResult response = MessageBox.Show("The SearchDirs have been modified.\n Do you want to save them?", "CS-Script", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
if (response == DialogResult.Yes)
apply_Click(sender, e);
else if (response == DialogResult.Cancel)
e.Cancel = true;
}
}
static Image DullImage(Image img)