Changeset 2793 for trunk/sources
- Timestamp:
- 02/14/10 01:57:07 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Common/3.2/NotificationDictionary.cs
r2790 r2793 48 48 protected virtual void OnBeforeInsert() { 49 49 if (BeforeInsertEvent != null) 50 BeforeInsertEvent(this, new EventArgs());50 BeforeInsertEvent(this, EventArgs.Empty); 51 51 } 52 52 53 53 protected virtual void OnAfterInsert() { 54 54 if (AfterInsertEvent != null) 55 AfterInsertEvent(this, new EventArgs());55 AfterInsertEvent(this, EventArgs.Empty); 56 56 } 57 57 58 58 protected virtual void OnBeforeRemove() { 59 59 if (BeforeRemoveEvent != null) 60 BeforeRemoveEvent(this, new EventArgs());60 BeforeRemoveEvent(this, EventArgs.Empty); 61 61 } 62 62 63 63 protected virtual void OnAfterRemove() { 64 64 if (AfterRemoveEvent != null) 65 AfterRemoveEvent(this, new EventArgs());65 AfterRemoveEvent(this, EventArgs.Empty); 66 66 } 67 67 68 68 protected virtual void OnChange() { 69 69 if (ChangeEvent != null) 70 ChangeEvent(this, new EventArgs());70 ChangeEvent(this, EventArgs.Empty); 71 71 } 72 72 73 73 protected virtual void OnClear() { 74 74 if (ClearEvent != null) 75 ClearEvent(this, new EventArgs());75 ClearEvent(this, EventArgs.Empty); 76 76 } 77 77 -
trunk/sources/HeuristicLab.Core/3.3/Engine.cs
r2790 r2793 242 242 protected virtual void OnExecutionTimeChanged() { 243 243 if (ExecutionTimeChanged != null) 244 ExecutionTimeChanged(this, new EventArgs());244 ExecutionTimeChanged(this, EventArgs.Empty); 245 245 } 246 246 /// <summary> … … 253 253 protected virtual void OnPrepared() { 254 254 if (Prepared != null) 255 Prepared(this, new EventArgs());255 Prepared(this, EventArgs.Empty); 256 256 } 257 257 /// <summary> … … 264 264 protected virtual void OnStarted() { 265 265 if (Started != null) 266 Started(this, new EventArgs());266 Started(this, EventArgs.Empty); 267 267 } 268 268 /// <summary> … … 275 275 protected virtual void OnStopped() { 276 276 if (Stopped != null) 277 Stopped(this, new EventArgs());277 Stopped(this, EventArgs.Empty); 278 278 } 279 279 /// <summary> -
trunk/sources/HeuristicLab.Core/3.3/NamedItem.cs
r2790 r2793 131 131 protected virtual void OnNameChanged() { 132 132 if (NameChanged != null) 133 NameChanged(this, new EventArgs());133 NameChanged(this, EventArgs.Empty); 134 134 OnChanged(); 135 135 } … … 142 142 protected virtual void OnDescriptionChanged() { 143 143 if (DescriptionChanged != null) 144 DescriptionChanged(this, new EventArgs());144 DescriptionChanged(this, EventArgs.Empty); 145 145 OnChanged(); 146 146 } -
trunk/sources/HeuristicLab.Core/3.3/OperatorGraph.cs
r2790 r2793 97 97 protected virtual void OnInitialOperatorChanged() { 98 98 if (InitialOperatorChanged != null) 99 InitialOperatorChanged(this, new EventArgs());99 InitialOperatorChanged(this, EventArgs.Empty); 100 100 OnChanged(); 101 101 } -
trunk/sources/HeuristicLab.Core/3.3/Variable.cs
r2790 r2793 101 101 private void OnValueChanged() { 102 102 if (ValueChanged != null) 103 ValueChanged(this, new EventArgs());103 ValueChanged(this, EventArgs.Empty); 104 104 OnChanged(); 105 105 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ActionUserInterfaceItem.cs
r2790 r2793 36 36 this.toolStripItem = value; 37 37 if (firstTimeSet) 38 this.OnToolStripItemSet( new EventArgs());38 this.OnToolStripItemSet(EventArgs.Empty); 39 39 } 40 40 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainForm.cs
r2790 r2793 110 110 Invoke((MethodInvoker)OnActiveViewChanged); 111 111 else if (ActiveViewChanged != null) 112 ActiveViewChanged(this, new EventArgs());112 ActiveViewChanged(this, EventArgs.Empty); 113 113 } 114 114 … … 142 142 Invoke((MethodInvoker)FireMainFormChanged); 143 143 else if (Changed != null) 144 Changed(this, new EventArgs());144 Changed(this, EventArgs.Empty); 145 145 } 146 146 … … 150 150 if (!this.initialized) { 151 151 this.initialized = true; 152 this.OnInitialized( new EventArgs());152 this.OnInitialized(EventArgs.Empty); 153 153 } 154 154 this.CreateGUI(); -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/View.cs
r2790 r2793 96 96 this.IsShown = false; 97 97 MainFormManager.GetMainForm<MainForm>().HideView(this); 98 this.OnHidden( new EventArgs());98 this.OnHidden(EventArgs.Empty); 99 99 } 100 100 … … 102 102 protected virtual void OnCaptionChanged() { 103 103 if (CaptionChanged != null) 104 CaptionChanged(this, new EventArgs());104 CaptionChanged(this, EventArgs.Empty); 105 105 } 106 106 … … 110 110 Invoke((MethodInvoker)OnChanged); 111 111 else if (Changed != null) 112 Changed(this, new EventArgs());112 Changed(this, EventArgs.Empty); 113 113 } 114 114 -
trunk/sources/HeuristicLab.Operators/3.3/Operator.cs
r2790 r2793 167 167 protected virtual void OnBreakpointChanged() { 168 168 if (BreakpointChanged != null) { 169 BreakpointChanged(this, new EventArgs());169 BreakpointChanged(this, EventArgs.Empty); 170 170 } 171 171 OnChanged(); … … 178 178 protected virtual void OnExecuted() { 179 179 if (Executed != null) { 180 Executed(this, new EventArgs());180 Executed(this, EventArgs.Empty); 181 181 } 182 182 } -
trunk/sources/HeuristicLab.Parameters/3.3/LookupParameter.cs
r2790 r2793 152 152 private void OnActualNameChanged() { 153 153 if (ActualNameChanged != null) 154 ActualNameChanged(this, new EventArgs());154 ActualNameChanged(this, EventArgs.Empty); 155 155 OnChanged(); 156 156 } -
trunk/sources/HeuristicLab.Parameters/3.3/SubScopesLookupParameter.cs
r2790 r2793 119 119 private void OnActualNameChanged() { 120 120 if (ActualNameChanged != null) 121 ActualNameChanged(this, new EventArgs());121 ActualNameChanged(this, EventArgs.Empty); 122 122 OnChanged(); 123 123 } -
trunk/sources/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs
r2790 r2793 79 79 private void OnValueChanged() { 80 80 if (ValueChanged != null) 81 ValueChanged(this, new EventArgs());81 ValueChanged(this, EventArgs.Empty); 82 82 OnChanged(); 83 83 } -
trunk/sources/HeuristicLab.Parameters/3.3/ValueParameter.cs
r2790 r2793 96 96 private void OnValueChanged() { 97 97 if (ValueChanged != null) 98 ValueChanged(this, new EventArgs());98 ValueChanged(this, EventArgs.Empty); 99 99 OnChanged(); 100 100 }
Note: See TracChangeset
for help on using the changeset viewer.