- Timestamp:
- 12/04/09 15:09:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainFormBase.cs
r2541 r2543 55 55 this.initialized = true; 56 56 if (this.Initialized != null) 57 this.Initialized(this, new EventArgs());57 this.Initialized(this, new EventArgs()); 58 58 } 59 59 } … … 154 154 form.GotFocus += new EventHandler(FormActivated); 155 155 form.FormClosing += new FormClosingEventHandler(view.OnClosing); 156 form.FormClosing += new FormClosingEventHandler(((ViewBase)view).OnClosing );156 form.FormClosing += new FormClosingEventHandler(((ViewBase)view).OnClosingHelper); 157 157 form.FormClosed += new FormClosedEventHandler(view.OnClosed); 158 158 form.FormClosed += new FormClosedEventHandler(ChildFormClosed); … … 176 176 if (InvokeRequired) Invoke((Action<IView>)CloseView, view); 177 177 else { 178 if (views.ContainsKey(view)) 178 if (views.ContainsKey(view)) { 179 ((ViewBase)view).closeReason = CloseReason.FormOwnerClosing; 179 180 views[view].Close(); 181 } 180 182 } 181 183 } … … 195 197 form.GotFocus -= new EventHandler(FormActivated); 196 198 form.FormClosing -= new FormClosingEventHandler(view.OnClosing); 197 form.FormClosing -= new FormClosingEventHandler(((ViewBase)view).OnClosing );199 form.FormClosing -= new FormClosingEventHandler(((ViewBase)view).OnClosingHelper); 198 200 form.FormClosed -= new FormClosedEventHandler(view.OnClosed); 199 201 form.FormClosed -= new FormClosedEventHandler(ChildFormClosed);
Note: See TracChangeset
for help on using the changeset viewer.