Created
January 20, 2010 03:43
-
-
Save migueldeicaza/281585 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// New support for enumeration values | |
// Those are turned into radio buttons | |
// | |
class Settings { | |
[Section] | |
public bool AccountEnabled; | |
[Section ("Account", "Your credentials")] | |
[Entry ("Enter your login name")] | |
public string Login; | |
[Password ("Enter your password")] | |
public string Password; | |
[Section ("Time Editing")] | |
public DateTime Appointment; | |
[Date] | |
public DateTime Birthday; | |
[Time] | |
public DateTime Alarm; | |
[Section ("Enumerations")] | |
[Caption ("Favorite CLR type")] | |
public TypeCode FavoriteType; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment