Changeset 2358 for trunk/sources
- Timestamp:
- 09/15/09 16:00:27 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/DockingMainForm.cs
r2309 r2358 73 73 private void DockFormClosed(object sender, FormClosedEventArgs e) { 74 74 DockForm dockForm = (DockForm)sender; 75 views.Remove(dockForm.View);76 if (views.Count == 0)77 ActiveView = null;78 79 75 ViewClosed(dockForm.View); 80 76 dockForm.Activated -= new EventHandler(DockFormActivated); -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs
r2350 r2358 98 98 get { return this.userInterfaceItemType; } 99 99 protected set { this.userInterfaceItemType = value; } 100 } 101 102 protected List<IView> views; 103 public IEnumerable<IView> Views { 104 get { return views; } 100 105 } 101 106 … … 140 145 } 141 146 142 protected List<IView> views; 143 public IEnumerable<IView> Views { 144 get { return views; } 145 } 147 146 148 147 149 public virtual void ShowView(IView view) { … … 162 164 163 165 protected virtual void ViewClosed(IView view) { 166 views.Remove(view); 167 if (ActiveView == view) 168 ActiveView = null; 164 169 } 165 170 #endregion -
trunk/sources/HeuristicLab.MainForm/3.2/MultipleDocumentMainForm.cs
r2309 r2358 84 84 private void MultipleDocumentFormClosed(object sender, FormClosedEventArgs e) { 85 85 DocumentForm form = (DocumentForm)sender; 86 views.Remove(form.View);87 if (views.Count == 0)88 ActiveView = null;89 90 86 ViewClosed(form.View); 91 87 form.Activated -= new EventHandler(MultipleDocumentFormActivated); -
trunk/sources/HeuristicLab.MainForm/3.2/SingleDocumentMainForm.cs
r2309 r2358 74 74 private void DockFormClosed(object sender, FormClosedEventArgs e) { 75 75 DocumentForm form = (DocumentForm)sender; 76 views.Remove(form.View);77 if (views.Count == 0)78 ActiveView = null;79 80 76 ViewClosed(form.View); 81 77 form.Activated -= new EventHandler(DockFormActivated);
Note: See TracChangeset
for help on using the changeset viewer.