示例#1
0
        /// <summary>
        /// 编辑枚举值列表
        /// </summary>
        /// <param name="oldValue">旧值</param>
        /// <returns>是否编辑成功</returns>
        public bool EditEnumValues(string oldValue)
        {
            bool editSuccess = false;

            enumValuesEditor = new EnumValuesEditor(oldValue);
            DialogResult result = enumValuesEditor.ShowDialog();

            if (result == DialogResult.OK)
            {
                editSuccess = true;
            }

            return(editSuccess);
        }
示例#2
0
文件: Program.cs 项目: viticm/pap2
        /// <summary>
        /// 编辑枚举值列表
        /// </summary>
        /// <param name="oldValue">旧值</param>
        /// <returns>是否编辑成功</returns>
        public bool EditEnumValues(string oldValue)
        {
            bool editSuccess = false;
            
            enumValuesEditor = new EnumValuesEditor(oldValue);
            DialogResult result = enumValuesEditor.ShowDialog();

            if(result == DialogResult.OK)
            {
                editSuccess = true;
            }

            return editSuccess;
        }