예제 #1
0
파일: Program.cs 프로젝트: viticm/pap2
        /// <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;
        }
예제 #2
0
        /// <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);
        }