Changeset 3466
- Timestamp:
- 04/21/10 17:26:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs
r3437 r3466 101 101 if (value == null || this.Content == null || value.GetType() != this.Content.GetType()) 102 102 cachedViews.Clear(); 103 viewContextMenuStrip.Item = value; 104 this.viewsLabel.Enabled = value != null; 103 105 104 base.Content = value; 106 105 } … … 122 121 messageLabel.Visible = false; 123 122 viewsLabel.Visible = false; 123 viewsLabel.Enabled = false; 124 124 viewPanel.Visible = false; 125 125 viewContextMenuStrip.Item = Content; 126 126 127 if (Content != null) { 128 127 129 if (viewContextMenuStrip.Items.Count == 0) 128 130 messageLabel.Visible = true; 129 else 131 else { 130 132 viewsLabel.Visible = true; 133 viewsLabel.Enabled = true; 134 } 131 135 132 136 if (!ViewCanShowContent(viewType, Content)) {
Note: See TracChangeset
for help on using the changeset viewer.