diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-09 16:19:47 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-09 16:19:47 +0300 |
| commit | df7dff9855ae205ce0a02d8fd460cd3399c5e362 (patch) | |
| tree | 2ce98e89b13956e21674c39cae36d26ba6dbcdc5 /Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs | |
| parent | 4147c287ad90a05eae551d4ccfdccc707bebd86f (diff) | |
| download | Tango-df7dff9855ae205ce0a02d8fd460cd3399c5e362.tar.gz Tango-df7dff9855ae205ce0a02d8fd460cd3399c5e362.zip | |
Fixed an issue with MS DB Module table scrolling lagging.
Added new event type for embedded job status message.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs index 0fcd070b3..db2220f54 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs @@ -17,6 +17,7 @@ namespace Tango.Integration.Operation { private Action _cancelAction; private List<Segment> _effectiveSegments; + private String _lastStatusMessage; #region Events @@ -176,7 +177,18 @@ namespace Tango.Integration.Operation Status.Progress = s.Progress; Status.RemainingTime = Status.TotalTime - Job.TranslateProgressToTime(Status.Progress, ProcessParameters); Status.RemainingProgress = Status.TotalProgress - Status.Progress; - Status.Message = s.Message; + + if (s.Message != _lastStatusMessage && s.Message != String.Empty) + { + Status.Message = s.Message; + } + else + { + Status.Message = null; + } + + _lastStatusMessage = s.Message; + StatusChanged?.Invoke(this, Status); //Segments Completion |
