From 9bd4040f1cb752d1b265af54f931007bfdbde0a9 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Mon, 25 May 2020 17:49:51 +0300 Subject: Redesign JobHandler Progress Calculation based on progress value and not on delta. Tested on PPC and Machine Studio with Emulator. Related Work Items: #2804 --- .../Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs') 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) -- cgit v1.3.1