Changeset 2532 for trunk/sources
- Timestamp:
- 11/25/09 10:43:07 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainFormBase.cs
r2514 r2532 143 143 form.GotFocus += new EventHandler(FormActivated); 144 144 form.FormClosing += new FormClosingEventHandler(view.OnClosing); 145 form.FormClosing += new FormClosingEventHandler(((ViewBase)view).OnClosing); 145 146 form.FormClosed += new FormClosedEventHandler(view.OnClosed); 146 147 form.FormClosed += new FormClosedEventHandler(ChildFormClosed); 147 148 foreach (IUserInterfaceItem item in UserInterfaceItems) 148 view.Changed += new EventHandler(item.ViewChanged); 149 view.Changed += new EventHandler(item.ViewChanged); 149 150 return true; 150 151 } else … … 183 184 form.GotFocus -= new EventHandler(FormActivated); 184 185 form.FormClosing -= new FormClosingEventHandler(view.OnClosing); 186 form.FormClosing -= new FormClosingEventHandler(((ViewBase)view).OnClosing); 185 187 form.FormClosed -= new FormClosedEventHandler(view.OnClosed); 186 188 form.FormClosed -= new FormClosedEventHandler(ChildFormClosed); -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ViewBase.cs
r2510 r2532 51 51 protected virtual void OnCaptionChanged() { 52 52 if (CaptionChanged != null) 53 CaptionChanged(this, new EventArgs()); 53 CaptionChanged(this, new EventArgs()); 54 54 } 55 55 … … 57 57 protected virtual void OnChanged() { 58 58 if (Changed != null) 59 Changed(this, new EventArgs()); 59 Changed(this, new EventArgs()); 60 60 } 61 61 62 public virtual void OnClosing(object sender, CancelEventArgs e) { 62 public virtual void OnClosing(object sender, CancelEventArgs e) { 63 } 64 65 public virtual void OnClosing(object sender, FormClosingEventArgs e) { 63 66 } 64 67
Note: See TracChangeset
for help on using the changeset viewer.