From 01c810c6a391cf96f7d486b1e41d2c76ecfb51f5 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 4 Jun 2023 12:17:07 +0300 Subject: PPC. Overview. Show progress in weight total when it is completed. Related Work Items: #8405 --- .../PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs | 2 +- .../Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs index 05a41912c..f451fe0d9 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs @@ -42,7 +42,7 @@ namespace Tango.PPC.UI.Converters var currentProgressBy4Spools = (double)currentProgresslength * 4; int coeff = (int)currentProgressBy4Spools / (int)totalBy4Spools; - var progressCurrent = coeff == 0 ? currentProgressBy4Spools : currentProgressBy4Spools % (coeff * totalBy4Spools);//show for progress + var progressCurrent = (coeff == 0 || coeff == 1) ? currentProgressBy4Spools : currentProgressBy4Spools % (coeff * totalBy4Spools);//show for progress var weight = ((double)progressCurrent * coef) / (1000);//(g) if (forOneSpool) { diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml index 8e7a6918b..996b54d13 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml @@ -557,7 +557,7 @@ - + @@ -884,7 +884,7 @@ - + @@ -894,7 +894,7 @@ -