Changeset 2309 for trunk/sources/HeuristicLab.MainForm
- Timestamp:
- 08/25/09 13:25:40 (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
r2308 r2309 63 63 64 64 public override void CloseView(IView view) { 65 DockForm dockform = FindForm(view); 66 if (dockform != null) 67 dockform.Close(); 65 if (InvokeRequired) Invoke((Action<IView>)CloseView, view); 66 else { 67 DockForm dockform = FindForm(view); 68 if (dockform != null) 69 dockform.Close(); 70 } 68 71 } 69 72 -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs
r2306 r2309 82 82 protected set { 83 83 if (this.activeView != value) { 84 this.activeView = value; 85 OnActiveViewChanged(); 84 if (InvokeRequired) { 85 Action<IView> action = delegate(IView activeView) { this.ActiveView = activeView; }; 86 Invoke(action, new object[] { value }); 87 } else { 88 this.activeView = value; 89 OnActiveViewChanged(); 90 } 86 91 } 87 92 } -
trunk/sources/HeuristicLab.MainForm/3.2/MultipleDocumentMainForm.cs
r2308 r2309 70 70 71 71 public override void CloseView(IView view) { 72 DocumentForm documentForm = FindForm(view); 73 if (documentForm != null) 74 documentForm.Close(); 72 if (InvokeRequired) Invoke((Action<IView>)CloseView, view); 73 else { 74 DocumentForm documentForm = FindForm(view); 75 if (documentForm != null) 76 documentForm.Close(); 77 } 75 78 } 76 79 -
trunk/sources/HeuristicLab.MainForm/3.2/SingleDocumentMainForm.cs
r2308 r2309 64 64 65 65 public override void CloseView(IView view) { 66 DocumentForm documentForm = FindForm(view); 67 if (documentForm != null) 68 documentForm.Close(); 66 if (InvokeRequired) Invoke((Action<IView>)CloseView, view); 67 else { 68 DocumentForm documentForm = FindForm(view); 69 if (documentForm != null) 70 documentForm.Close(); 71 } 69 72 } 70 73
Note: See TracChangeset
for help on using the changeset viewer.