Changeset 3395 for trunk/sources/HeuristicLab.MainForm/3.2
- Timestamp:
- 04/18/10 03:25:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/ViewAttribute.cs
r3281 r3395 31 31 public ViewAttribute(string name) { 32 32 this.name = name; 33 this.showInViewHost = false;34 33 } 35 34 … … 38 37 get { return this.name; } 39 38 set { this.name = value; } 40 }41 42 private bool showInViewHost;43 public bool ShowInViewHost {44 get { return this.showInViewHost; }45 set { this.showInViewHost = value; }46 39 } 47 40 … … 57 50 return viewType.Name; 58 51 } 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 }66 52 } 67 53 }
Note: See TracChangeset
for help on using the changeset viewer.