aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-15 23:03:00 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-15 23:03:00 +0300
commit049a79893eac8335ad37defd042533e0fbb8f054 (patch)
treed9ce0063c56e41b9342c77539d9d01c2479fff90 /Software/Visual_Studio/PPC/Tango.PPC.UI
parent9375b71348f9235e642eee147e803e702c8adee8 (diff)
downloadTango-049a79893eac8335ad37defd042533e0fbb8f054.tar.gz
Tango-049a79893eac8335ad37defd042533e0fbb8f054.zip
Disable job execution when liquid volumes out of range.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
index 34624947f..1f2895f26 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
@@ -259,6 +259,10 @@ namespace Tango.PPC.UI.Printing
{
throw new InvalidOperationException("Error starting job. Color is out of range.");
}
+ if (job.Segments.SelectMany(x => x.BrushStops).Any(x => x.IsLiquidVolumesOutOfRange))
+ {
+ throw new InvalidOperationException("Error starting job. Total ink volume is out of range.");
+ }
if (job.Segments.SelectMany(x => x.BrushStops).Any(x => x.BrushColorSpace == ColorSpaces.Catalog && x.ColorCatalogsItem == null && !x.IsTransparent && !x.IsWhite))
{
throw new InvalidOperationException("Error starting job. Please select a catalog color.");