diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-16 13:47:20 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-16 13:47:20 +0300 |
| commit | fdfa740288568dba27877a5ef5c817be323cfbb0 (patch) | |
| tree | 933ee1cb2769d43c982596f50ff8b7ec791f3be7 /Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs | |
| parent | d376387fa28a2091a21e2fc7193812d1f8a40ef2 (diff) | |
| download | Tango-fdfa740288568dba27877a5ef5c817be323cfbb0.tar.gz Tango-fdfa740288568dba27877a5ef5c817be323cfbb0.zip | |
Working on PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs index bdbfacca5..b9198d2e9 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs @@ -154,6 +154,9 @@ namespace Tango.Integration.Operation /// <param name="ex">The ex.</param> internal void RaiseFailed(Exception ex) { + Status.IsFailed = true; + StatusChanged?.Invoke(this, Status); + RaisePropertyChanged(nameof(Status)); Failed?.Invoke(this, ex); Stopped?.Invoke(this, new EventArgs()); } @@ -163,6 +166,9 @@ namespace Tango.Integration.Operation /// </summary> internal void RaiseCompleted() { + Status.IsCompleted = true; + StatusChanged?.Invoke(this, Status); + RaisePropertyChanged(nameof(Status)); Completed?.Invoke(this, new EventArgs()); Stopped?.Invoke(this, new EventArgs()); } @@ -172,10 +178,13 @@ namespace Tango.Integration.Operation /// </summary> internal void RaiseCanceled() { + Status.IsCanceled = true; + StatusChanged?.Invoke(this, Status); + RaisePropertyChanged(nameof(Status)); Canceled?.Invoke(this, new EventArgs()); Stopped?.Invoke(this, new EventArgs()); } - + #endregion #region Private Methods @@ -279,7 +288,6 @@ namespace Tango.Integration.Operation /// </summary> public void Cancel() { - Status.Progress = 0; _cancelAction(); } |
