diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-05-25 17:49:51 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-05-25 17:49:51 +0300 |
| commit | 9bd4040f1cb752d1b265af54f931007bfdbde0a9 (patch) | |
| tree | 8812c6561cadfd75486cb20ac3bf9cff8503779f /Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs | |
| parent | 2a0905a1f57519b0cd33594a3a7fcb3f5f860d74 (diff) | |
| download | Tango-9bd4040f1cb752d1b265af54f931007bfdbde0a9.tar.gz Tango-9bd4040f1cb752d1b265af54f931007bfdbde0a9.zip | |
Redesign JobHandler Progress Calculation based on progress value and not on delta. Tested on PPC and Machine Studio with Emulator.
Related Work Items: #2804
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs index 914e4cf34..dc3466971 100644 --- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs @@ -139,10 +139,14 @@ namespace Tango.JobProgressTester.UI private void OnProgressChanged() { - JobHandler.RaiseStatusReceived(new JobStatus() + if(JobHandler != null) { - Progress = Progress, - }); + JobHandler.RaiseStatusReceived(new JobStatus() + { + Progress = Progress, + }); + } + } private void ShowError(String message) |
