/// <summary> /// 创建自定义动作 /// </summary> /// <param name="conn">sql连接</param> /// <returns>是否编辑成功</returns> public bool CreateFunction(SqlConnection conn) { bool editSuccess = false; cForm = new CustomFunctionForm(conn); DialogResult result = cForm.ShowDialog(); if (result == DialogResult.OK) { editSuccess = true; } return editSuccess; }
/// <summary> /// 创建自定义动作 /// </summary> /// <param name="conn">sql连接</param> /// <returns>是否编辑成功</returns> public bool CreateFunction(SqlConnection conn) { bool editSuccess = false; cForm = new CustomFunctionForm(conn); DialogResult result = cForm.ShowDialog(); if (result == DialogResult.OK) { editSuccess = true; } return(editSuccess); }