private void txtScript_Validated(object sender, EventArgs e) { if (String.IsNullOrEmpty(_curScriptName) == false) { Settings.Default[_curScriptName + "_Handler"] = txtScript.Text; Settings.Default.Save(); } }