/// <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); }
/// <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; }