RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



ConstructorArgument default ignored when... Expand / Collapse
Message
Posted 2/27/2009 19:50:11 Post #7740
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
The RE GUI (build 382) seems to ignore the specified default value of ConstructorArgument when the ConstructorArgumentType is Enum. Instead it always displays the second enumeration.

For example, the following displays No as the default when the GUI is displayed:
public enum YesNoType { Yes, No };
[ConstructorArgument("RTH reset", ConstructorArgumentType.Enum, YesNoType.Yes, 1)]

Switching the order of enumeration definition displays Yes as the default when the GUI is displayed:
public enum YesNoType { No, Yes };
[ConstructorArgument("RTH reset", ConstructorArgumentType.Enum, YesNoType.Yes, 1)]

I've verified similar behavior with indicator code that I downloaded from the RE library. Even with many enumerations, the second always seems to get displayed as default.
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 1:06am

2005-2007 © RightEdge Systems