Changeset 3255
- Timestamp:
- 04/01/10 22:50:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/MainFormManager.cs
r2992 r3255 88 88 List<Type> viewTypes = new List<Type>(GetViewTypes(contentType)); 89 89 if (returnOnlyMostSpecificViewTypes) { 90 Type defaultViewType = null; 91 try { 92 defaultViewType = GetDefaultViewType(contentType); 93 } 94 catch (InvalidOperationException) { } 95 90 96 foreach (Type viewType in viewTypes.ToList()) { 91 if( viewTypes.Any(t => t.IsSubclassOf(viewType)))97 if((viewType != defaultViewType) && viewTypes.Any(t => t.IsSubclassOf(viewType))) 92 98 viewTypes.Remove(viewType); 93 99 }
Note: See TracChangeset
for help on using the changeset viewer.