Changeset 3281 for trunk/sources/HeuristicLab.MainForm
- Timestamp:
- 04/07/10 11:38:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/ViewAttribute.cs
r2837 r3281 31 31 public ViewAttribute(string name) { 32 32 this.name = name; 33 this.showInViewHost = false; 33 34 } 34 35 … … 37 38 get { return this.name; } 38 39 set { this.name = value; } 40 } 41 42 private bool showInViewHost; 43 public bool ShowInViewHost { 44 get { return this.showInViewHost; } 45 set { this.showInViewHost = value; } 39 46 } 40 47 … … 50 57 return viewType.Name; 51 58 } 59 60 public static bool GetShowInViewHost(MemberInfo viewType) { 61 ViewAttribute[] attributes = (ViewAttribute[])viewType.GetCustomAttributes(typeof(ViewAttribute), false); 62 if (attributes.Length == 1) 63 return attributes[0].showInViewHost; 64 return false; 65 } 52 66 } 53 67 }
Note: See TracChangeset
for help on using the changeset viewer.