Make it possible to change the name of an enum button

This commit is contained in:
LarsBrubaker 2021-09-20 09:20:22 -07:00
parent bd01dfa69a
commit c43ed1e73f
5 changed files with 56 additions and 35 deletions

View file

@ -49,12 +49,15 @@ namespace MatterHackers.MatterControl.DesignTools
public enum ReductionMode
{
[EnumName("Count")]
Polygon_Count,
[EnumName("Percent")]
Polygon_Percent
}
public override bool Persistable => ApplicationController.Instance.UserHasPermission(this);
[EnumDisplay(Mode = EnumDisplayAttribute.PresentationMode.Buttons)]
public ReductionMode Mode { get; set; } = ReductionMode.Polygon_Percent;
[ReadOnly(true)]