- Timestamp:
- 11/10/10 14:03:54 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/DataTable.cs
r4722 r4763 186 186 public event EventHandler<EventArgs<int, int>> ItemChanged; 187 187 private void OnItemChanged(int rowIndex, int columnIndex) { 188 if (ItemChanged != null)189 ItemChanged(this, new EventArgs<int, int>(rowIndex, columnIndex));188 var handler = ItemChanged; 189 if (handler != null) handler(this, new EventArgs<int, int>(rowIndex, columnIndex)); 190 190 OnToStringChanged(); 191 191 } 192 192 public event EventHandler Reset; 193 193 private void OnReset() { 194 if (Reset != null)195 Reset(this, EventArgs.Empty);194 var handler = Reset; 195 if (handler != null) handler(this, EventArgs.Empty); 196 196 } 197 197 public event EventHandler ColumnNamesChanged; 198 198 private void OnColumnNamesChanged() { 199 EventHandler handler = ColumnNamesChanged; 200 if (handler != null) 201 handler(this, EventArgs.Empty); 199 var handler = ColumnNamesChanged; 200 if (handler != null) handler(this, EventArgs.Empty); 202 201 } 203 202 public event EventHandler RowNamesChanged; 204 203 private void OnRowNamesChanged() { 205 EventHandler handler = RowNamesChanged; 206 if (handler != null) 207 handler(this, EventArgs.Empty); 204 var handler = RowNamesChanged; 205 if (handler != null) handler(this, EventArgs.Empty); 208 206 } 209 207 public event EventHandler SortableViewChanged; 210 208 private void OnSortableViewChanged() { 211 EventHandler handler = SortableViewChanged; 212 if (handler != null) 213 handler(this, EventArgs.Empty); 209 var handler = SortableViewChanged; 210 if (handler != null) handler(this, EventArgs.Empty); 214 211 } 215 212 #endregion -
trunk/sources/HeuristicLab.Optimization/3.3/Result.cs
r4725 r4763 130 130 public event EventHandler ValueChanged; 131 131 private void OnValueChanged() { 132 if (ValueChanged != null)133 ValueChanged(this, EventArgs.Empty);132 var handler = ValueChanged; 133 if (handler != null) handler(this, EventArgs.Empty); 134 134 OnItemImageChanged(); 135 135 OnToStringChanged();
Note: See TracChangeset
for help on using the changeset viewer.