- Timestamp:
- 08/04/10 19:16:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs
r4103 r4158 173 173 view.ReadOnly = this.ReadOnly; 174 174 view.Locked = this.Locked; 175 ActiveView = view; //necessary to allow the views to change the status of the viewhost 175 176 view.Content = Content; 176 177 cachedViews.Add(viewType, view); … … 178 179 if (c != null) 179 180 this.Controls.Add(c); 180 } 181 } else 182 ActiveView = cachedViews[viewType]; 181 183 UpdateActiveMenuItem(); 182 ActiveView = cachedViews[viewType];183 184 } 184 185 } … … 192 193 this.ActiveViewControl.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; 193 194 this.ActiveViewControl.Size = new System.Drawing.Size(this.Width - this.viewsLabel.Width - this.viewsLabel.Margin.Left - this.viewsLabel.Margin.Right, this.Height); 194 this.ActiveViewChanged();195 195 } 196 196 this.ResumeRepaint(true); … … 214 214 if (ActiveView != null) { 215 215 this.Caption = this.ActiveView.Caption; 216 this.ReadOnly = this.ActiveView.ReadOnly; 216 217 this.Locked = this.ActiveView.Locked; 217 218 }
Note: See TracChangeset
for help on using the changeset viewer.