Changeset 3709 for trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3
- Timestamp:
- 05/07/10 18:12:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs
r3670 r3709 83 83 } 84 84 } 85 public new IContent Content {86 get { return base.Content; }87 set {88 if (value == null || this.Content == null || value.GetType() != this.Content.GetType())89 cachedViews.Clear();90 91 base.Content = value;92 }93 }94 85 95 86 public new bool Enabled { … … 118 109 119 110 if (!ViewCanShowContent(viewType, Content)) { 111 cachedViews.Clear(); 120 112 ViewType = MainFormManager.GetDefaultViewType(Content.GetType()); 121 113 if ((viewType == null) && (viewContextMenuStrip.Items.Count > 0)) // create first available view if default view is not available … … 129 121 viewsLabel.Visible = false; 130 122 viewPanel.Visible = false; 131 if (viewPanel.Controls.Count > 0) viewPanel.Controls[0].Dispose();132 viewPanel.Controls.Clear();133 cachedViews.Clear();134 123 } 135 124 }
Note: See TracChangeset
for help on using the changeset viewer.