- Timestamp:
- 06/16/10 11:17:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs
r3918 r3924 100 100 if (viewContextMenuStrip.Items.Count == 0) { 101 101 messageLabel.Visible = true; 102 viewsLabel. Enabled= false;102 viewsLabel.Visible = false; 103 103 viewPanel.Visible = false; 104 104 } else { 105 105 messageLabel.Visible = false; 106 viewsLabel. Enabled= true;106 viewsLabel.Visible = true; 107 107 viewPanel.Visible = true; 108 108 } … … 117 117 } else { 118 118 foreach (Type type in cachedViews.Keys.ToList()) { 119 if (!ViewCanShowContent(type, Content)) 119 if (!ViewCanShowContent(type, Content)) { 120 Control c = cachedViews[type] as Control; 121 if (c != null) 122 c.Dispose(); 120 123 cachedViews.Remove(type); 124 } 121 125 } 122 126 } … … 126 130 } else { 127 131 messageLabel.Visible = false; 128 viewsLabel. Enabled= false;132 viewsLabel.Visible = false; 129 133 viewPanel.Visible = false; 130 134 } … … 163 167 viewPanel.Controls.Add(control); 164 168 viewPanel.Visible = true; 165 viewPanel.Refresh();166 169 } 167 170
Note: See TracChangeset
for help on using the changeset viewer.