Make it possible to change the name of an enum button
This commit is contained in:
parent
bd01dfa69a
commit
c43ed1e73f
5 changed files with 56 additions and 35 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue