Changeset 3361 for trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
- Timestamp:
- 04/16/10 01:39:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ViewHost.cs
r3350 r3361 63 63 viewContextMenuStrip.Item = content; 64 64 cachedViews.Clear(); 65 this.viewsLabel.Enabled = value != null; 65 66 Initialize(); 66 67 } … … 73 74 this.SuspendRepaint(); 74 75 base.Enabled = value; 75 this.viewsLabel.Enabled = value; 76 if (Content != null && value) 77 this.viewsLabel.Enabled = value; 76 78 this.ResumeRepaint(true); 77 79 } … … 113 115 114 116 if (Content != null) { 115 if (viewContextMenuStrip.Items.Count == 0) 117 if (viewContextMenuStrip.Items.Count == 0) 116 118 messageLabel.Visible = true; 117 else119 else 118 120 viewsLabel.Visible = true; 119 121 … … 140 142 UpdateActiveMenuItem(); 141 143 cachedViews.Clear(); 142 Control view = (Control)MainFormManager.CreateView(viewType, Content, ReadOnly);144 Control view = (Control)MainFormManager.CreateView(viewType, Content, ReadOnly); 143 145 cachedViews.Add(viewType, ((IView)view)); 144 146 view.Dock = DockStyle.Fill; … … 168 170 169 171 private void viewsLabel_DoubleClick(object sender, EventArgs e) { 170 MainFormManager.CreateView(viewType, Content, ReadOnly).Show();172 MainFormManager.CreateView(viewType, Content, ReadOnly).Show(); 171 173 } 172 174
Note: See TracChangeset
for help on using the changeset viewer.