Changeset 2336
- Timestamp:
- 09/07/09 12:20:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs
r2334 r2336 112 112 public event EventHandler ActiveViewChanged; 113 113 protected virtual void OnActiveViewChanged() { 114 if (ActiveViewChanged != null) 114 if (InvokeRequired) 115 Invoke((MethodInvoker)OnActiveViewChanged); 116 else if (ActiveViewChanged != null) 115 117 ActiveViewChanged(this, new EventArgs()); 116 118 } … … 121 123 } 122 124 protected virtual void OnMainFormChanged() { 123 if (MainFormChanged != null) 125 if (InvokeRequired) 126 Invoke((MethodInvoker)FireMainFormChanged); 127 else if (MainFormChanged != null) 124 128 MainFormChanged(this, new EventArgs()); 125 129 }
Note: See TracChangeset
for help on using the changeset viewer.