Changeset 2468 for trunk/sources
- Timestamp:
- 11/05/09 13:20:30 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/ContentAttribute.cs
r2466 r2468 58 58 } 59 59 60 public static IEnumerable<Type> Get TypesWhereViewTypeIsDefaultView(Type viewType) {60 public static IEnumerable<Type> GetDefaultViewableTypes(Type viewType) { 61 61 ContentAttribute[] attributes = (ContentAttribute[])viewType.GetCustomAttributes(typeof(ContentAttribute), true); 62 62 return from a in attributes -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormManager.cs
r2467 r2468 51 51 foreach (Type viewType in types) { 52 52 views.Add(viewType); 53 foreach (Type contentType in ContentAttribute.Get TypesWhereViewTypeIsDefaultView(viewType)) {53 foreach (Type contentType in ContentAttribute.GetDefaultViewableTypes(viewType)) { 54 54 if (defaultViews.ContainsKey(contentType)) 55 55 throw new ArgumentException("DefaultView for type " + contentType + " is " + defaultViews[contentType] +
Note: See TracChangeset
for help on using the changeset viewer.