Language: C#
A ProperyGrid example in C#
1: public class GranslatorSettings 2: { 3: 4: [Category("Languages"), Description("Remember source and target languages when you close the program.")] 5: public bool RememberLanguages 6: { 7: get; 8: set; 9: } 10: 11: 12: [Category("Application"), Description("Set editor font.")] 13: public System.Drawing.Font EditorFont 14: { 15: get; 16: set; 17: } 18: 19: [Category("Application"), Description("Run everytime Windows starts.")] 20: public bool RunWithWindows 21: { 22: get; 23: set; 24: } 25: 26: [Category("Application"), Description("Hide main window when minimized.")] 27: public bool HideWhenMinimize 28: { 29: get; 30: set; 31: } 32: 33: } 34: 35: 36: //assign it to PropertyGrid 37: propertyGrid1.SelectedObject = new GranslatorSetting();
by
Iman Nemati
July 21, 2009 @ 2:07pm
July 21, 2009 @ 2:07pm
Tags:
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

