public override void Edit()
{
UDFEditor editor = new UDFEditor();
DialogResult result = editor.ShowDialog();
if (result == DialogResult.Cancel) return;
string sql = "CREATE {0} FUNCTION {1} RETURNS {2} SONAME '{3}'";
sql = String.Format(sql, editor.Aggregate ? "AGGREGATE" : "",
editor.FunctionName, editor.ReturnTypeByName, editor.LibraryName);
Name = editor.FunctionName;
ExecuteSQL(sql);
SaveNode();
}
}