Changeset 6168 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ServiceClients/HiveExperiment.cs
- Timestamp:
- 05/09/11 14:12:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ServiceClients/HiveExperiment.cs
r6033 r6168 119 119 #region Events 120 120 public event EventHandler ExecutionTimeChanged; 121 pr ivatevoid OnExecutionTimeChanged() {122 EventHandler handler = ExecutionTimeChanged;121 protected virtual void OnExecutionTimeChanged() { 122 var handler = ExecutionTimeChanged; 123 123 if (handler != null) handler(this, EventArgs.Empty); 124 124 } 125 125 126 126 public event EventHandler ExecutionStateChanged; 127 pr ivatevoid OnExecutionStateChanged() {128 EventHandler handler = ExecutionStateChanged;127 protected virtual void OnExecutionStateChanged() { 128 var handler = ExecutionStateChanged; 129 129 if (handler != null) handler(this, EventArgs.Empty); 130 130 } … … 132 132 public event EventHandler HiveJobsChanged; 133 133 protected virtual void OnHiveJobsChanged() { 134 EventHandler handler = HiveJobsChanged;134 var handler = HiveJobsChanged; 135 135 if (handler != null) handler(this, EventArgs.Empty); 136 136 } 137 137 138 138 public event EventHandler IsProgressingChanged; 139 private void OnIsProgressingChanged() { 140 EventHandler handler = IsProgressingChanged; 139 protected virtual void OnIsProgressingChanged() { 140 var handler = IsProgressingChanged; 141 if (handler != null) handler(this, EventArgs.Empty); 142 } 143 144 public event EventHandler Loaded; 145 public virtual void OnLoaded() { 146 var handler = Loaded; 141 147 if (handler != null) handler(this, EventArgs.Empty); 142 148 } … … 175 181 return Name; 176 182 } 177 178 public virtual void OnLoaded() { }179 183 } 180 184 }
Note: See TracChangeset
for help on using the changeset viewer.