Changeset 3730
- Timestamp:
- 05/10/10 01:50:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs
r3720 r3730 108 108 } 109 109 110 if (!ViewCanShowContent(viewType, Content)) { 110 Type defaultViewType = MainFormManager.GetDefaultViewType(Content.GetType()); 111 if (!ViewCanShowContent(viewType, Content) || defaultViewType != this.ViewType) { 111 112 cachedViews.Clear(); 112 ViewType = MainFormManager.GetDefaultViewType(Content.GetType());113 ViewType = defaultViewType; 113 114 if ((viewType == null) && (viewContextMenuStrip.Items.Count > 0)) // create first available view if default view is not available 114 115 ViewType = (Type)viewContextMenuStrip.Items[0].Tag;
Note: See TracChangeset
for help on using the changeset viewer.