Changeset 3472 for trunk/sources
- Timestamp:
- 04/21/10 18:58:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Engine/3.2/Job.cs
r2111 r3472 28 28 using System.Xml; 29 29 using HeuristicLab.Data; 30 using HeuristicLab.Common; 30 31 31 32 namespace HeuristicLab.Hive.Engine { … … 48 49 private void RegisterEvents() { 49 50 engine.Finished += new EventHandler(engine_Finished); 51 engine.ExceptionOccurred += new EventHandler<EventArgs<Exception>>(engine_ExceptionOccurred); 50 52 } 51 53 52 54 private void DeregisterEvents() { 53 55 engine.Finished -= new EventHandler(engine_Finished); 56 engine.ExceptionOccurred -= new EventHandler<EventArgs<Exception>>(engine_ExceptionOccurred); 54 57 } 55 58 … … 57 60 if (Engine.Canceled) this.progress = 0.0; 58 61 else this.progress = 1.0; 59 if (JobStopped != null) 60 JobStopped(this, new EventArgs()); 62 var listeners = JobStopped; 63 if (listeners != null) 64 listeners(this, e); 61 65 } 66 67 void engine_ExceptionOccurred(object sender, EventArgs<Exception> e) { 68 this.progress = 0.0; 69 var listeners = JobFailed; 70 if (listeners != null) 71 listeners(this, e); 72 } 73 62 74 63 75 #region IJob Members
Note: See TracChangeset
for help on using the changeset viewer.