Beispiel #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);
        }
Beispiel #2
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;
        }