aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobProgressViewVM.cs2
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs18
2 files changed, 4 insertions, 16 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobProgressViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobProgressViewVM.cs
index b879831b9..a5b68b368 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobProgressViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobProgressViewVM.cs
@@ -205,6 +205,8 @@ namespace Tango.PPC.Jobs.ViewModels
protected void OnUpdateCurrentBrush()
{
+ CurrentBrushStop.SetLiquidVolumes(MachineProvider.Machine.Configuration, Job.Rml, MachineProvider.MachineOperator.CurrentProcessParameters);
+
RaisePropertyChanged(nameof(CyanOutput));
RaisePropertyChanged(nameof(LightCyanOutput));
RaisePropertyChanged(nameof(MagentaOutput));
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs
index 970bbcd04..499d2c08c 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs
@@ -1672,10 +1672,6 @@ namespace Tango.PPC.Jobs.ViewModels
dbStop.L = stop.L;
dbStop.A = stop.A;
dbStop.B = stop.B;
- dbStop.Cyan = stop.Cyan;
- dbStop.Magenta = stop.Magenta;
- dbStop.Yellow = stop.Yellow;
- dbStop.Black = stop.Black;
dbStop.BestMatchR = stop.BestMatchColor.R;
dbStop.BestMatchG = stop.BestMatchColor.G;
dbStop.BestMatchB = stop.BestMatchColor.B;
@@ -1684,10 +1680,7 @@ namespace Tango.PPC.Jobs.ViewModels
dbStop.StopIndex = stop.StopIndex;
dbStop.IsOutOfGamut = stop.IsOutOfGamut;
- dbStop.SetVolume(LiquidTypes.Cyan, stop.Cyan);
- dbStop.SetVolume(LiquidTypes.Magenta, stop.Magenta);
- dbStop.SetVolume(LiquidTypes.Yellow, stop.Yellow);
- dbStop.SetVolume(LiquidTypes.Black, stop.Black);
+ stop.LiquidVolumes.SetVolumesOnBrushStop(dbStop);
dbStop.ColorCatalog = stop.ColorCatalog;
dbStop.ColorCatalogsItem = stop.ColorCatalogsItem;
@@ -1728,10 +1721,6 @@ namespace Tango.PPC.Jobs.ViewModels
dbStop.L = stop.L;
dbStop.A = stop.A;
dbStop.B = stop.B;
- dbStop.Cyan = stop.Cyan;
- dbStop.Magenta = stop.Magenta;
- dbStop.Yellow = stop.Yellow;
- dbStop.Black = stop.Black;
dbStop.BestMatchR = stop.BestMatchColor.R;
dbStop.BestMatchG = stop.BestMatchColor.G;
dbStop.BestMatchB = stop.BestMatchColor.B;
@@ -1740,10 +1729,7 @@ namespace Tango.PPC.Jobs.ViewModels
dbStop.StopIndex = stop.StopIndex;
dbStop.IsOutOfGamut = stop.IsOutOfGamut;
- dbStop.SetVolume(LiquidTypes.Cyan, stop.Cyan);
- dbStop.SetVolume(LiquidTypes.Magenta, stop.Magenta);
- dbStop.SetVolume(LiquidTypes.Yellow, stop.Yellow);
- dbStop.SetVolume(LiquidTypes.Black, stop.Black);
+ stop.LiquidVolumes.SetVolumesOnBrushStop(dbStop);
dbStop.ColorCatalog = stop.ColorCatalog;
dbStop.ColorCatalogsItem = stop.ColorCatalogsItem;