/// <summary> /// 编辑动作参数 /// </summary> /// <param name="conn">sql连接</param> /// <param name="oldValue">旧值</param> /// <returns>是否编辑成功</returns> public bool EditParameter(SqlConnection conn, string oldValue) { bool success = false; parameterEditor = new ParameterEditor(conn, oldValue); DialogResult result = parameterEditor.ShowDialog(); if (result == DialogResult.OK) { success = true; } return(success); }
/// <summary> /// 编辑动作参数 /// </summary> /// <param name="conn">sql连接</param> /// <param name="oldValue">旧值</param> /// <returns>是否编辑成功</returns> public bool EditParameter(SqlConnection conn, string oldValue) { bool success = false; parameterEditor = new ParameterEditor(conn, oldValue); DialogResult result = parameterEditor.ShowDialog(); if(result == DialogResult.OK) { success = true; } return success; }