aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-13 05:12:21 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-13 05:12:21 +0200
commit331266b13685e16520ae5baa8a7aff50789c31df (patch)
treee41c95c155aecccd43cac6498e4bd70a3e227f5a /Software/Visual_Studio/PPC/Tango.PPC.Common
parent46978af63f2f683eefb0cadb87c1ce7540b0038d (diff)
downloadTango-331266b13685e16520ae5baa8a7aff50789c31df.tar.gz
Tango-331266b13685e16520ae5baa8a7aff50789c31df.zip
Inks Extension Support.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/DefaultRemoteJobService.cs23
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/IRemoteJobInputOutputProvider.cs9
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/LiquidOutputModel.cs27
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml2
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj3
5 files changed, 44 insertions, 20 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/DefaultRemoteJobService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/DefaultRemoteJobService.cs
index 00b4f5ad1..b42a3206c 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/DefaultRemoteJobService.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/DefaultRemoteJobService.cs
@@ -180,10 +180,14 @@ namespace Tango.PPC.Common.RemoteJob
switch (colorSpace)
{
case BL.Enumerations.ColorSpaces.Volume:
- inputOutput.Input.Add(new Tuple<string, String>("C", i.CurrentBrushStop.Cyan.ToString("0.00")));
- inputOutput.Input.Add(new Tuple<string, String>("M", i.CurrentBrushStop.Magenta.ToString("0.00")));
- inputOutput.Input.Add(new Tuple<string, String>("Y", i.CurrentBrushStop.Yellow.ToString("0.00")));
- inputOutput.Input.Add(new Tuple<string, String>("K", i.CurrentBrushStop.Black.ToString("0.00")));
+ if (i.CurrentBrushStop.LiquidVolumes != null)
+ {
+ foreach (var input in i.CurrentBrushStop.LiquidVolumesOrderedPigmentedForStandardUser.ToList())
+ {
+ inputOutput.Input.Add(new Tuple<string, string>(input.IdsPack.LiquidType.ShortName, input.Volume.ToString()));
+ }
+ }
+
break;
case BL.Enumerations.ColorSpaces.RGB:
inputOutput.Input.Add(new Tuple<string, String>("R", i.CurrentBrushStop.Red.ToString()));
@@ -205,13 +209,10 @@ namespace Tango.PPC.Common.RemoteJob
try
{
- inputOutput.Output.Add(new Tuple<string, string>("C", i.CyanOutput.ToString()));
- inputOutput.Output.Add(new Tuple<string, string>("LC", i.LightCyanOutput.ToString()));
- inputOutput.Output.Add(new Tuple<string, string>("M", i.MagentaOutput.ToString()));
- inputOutput.Output.Add(new Tuple<string, string>("LM", i.LightMagentaOutput.ToString()));
- inputOutput.Output.Add(new Tuple<string, string>("Y", i.YellowOutput.ToString()));
- inputOutput.Output.Add(new Tuple<string, string>("LY", i.LightYellowOutput.ToString()));
- inputOutput.Output.Add(new Tuple<string, string>("K", i.BlackOutput.ToString()));
+ foreach (var output in i.LiquidOutputs)
+ {
+ inputOutput.Output.Add(new Tuple<string, string>(output.LiquidType.ShortName, output.Volume.ToString()));
+ }
}
catch
{
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/IRemoteJobInputOutputProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/IRemoteJobInputOutputProvider.cs
index cc98bd419..85dd66f7c 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/IRemoteJobInputOutputProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/IRemoteJobInputOutputProvider.cs
@@ -10,13 +10,6 @@ namespace Tango.PPC.Common.RemoteJob
public interface IRemoteJobInputOutputProvider
{
BrushStop CurrentBrushStop { get; }
-
- double CyanOutput { get; }
- double MagentaOutput { get; }
- double YellowOutput { get; }
- double BlackOutput { get; }
- double LightCyanOutput { get; }
- double LightMagentaOutput { get; }
- double LightYellowOutput { get; }
+ List<LiquidOutputModel> LiquidOutputs { get; set; }
}
}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/LiquidOutputModel.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/LiquidOutputModel.cs
new file mode 100644
index 000000000..113d11ddc
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJob/LiquidOutputModel.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.BL.Entities;
+using Tango.Core;
+
+namespace Tango.PPC.Common.RemoteJob
+{
+ public class LiquidOutputModel : ExtendedObject
+ {
+ private LiquidType _liquidType;
+ public LiquidType LiquidType
+ {
+ get { return _liquidType; }
+ set { _liquidType = value; RaisePropertyChangedAuto(); }
+ }
+
+ private double _volume;
+ public double Volume
+ {
+ get { return _volume; }
+ set { _volume = value; RaisePropertyChangedAuto(); }
+ }
+ }
+}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml
index 816d72de3..acd4c7406 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml
@@ -9,6 +9,8 @@
<SolidColorBrush x:Key="TangoMagentaInkBrush" Color="#ed008c" />
<SolidColorBrush x:Key="TangoCyanInkBrush" Color="#1662EB" />
<SolidColorBrush x:Key="TangoYellowInkBrush" Color="#e8e10c" />
+ <Color x:Key="TangoVioletInkColor">#7F00FF</Color>
+ <SolidColorBrush x:Key="TangoVioletInkBrush" Color="#7F00FF" />
<SolidColorBrush x:Key="TangoWasteBrush" Color="#2BA221" />
<SolidColorBrush x:Key="TangoTransparentInkBrush" Color="#A0A0A0" />
<SolidColorBrush x:Key="TangoLubricantBrush" Color="#B6AD7C" />
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj b/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj
index 08ad6ec1c..97a89b082 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj
@@ -224,6 +224,7 @@
<Compile Include="RemoteJob\IRemoteJobInputOutputProvider.cs" />
<Compile Include="RemoteJob\IRemoteJobService.cs" />
<Compile Include="RemoteActions\IRemoteActionsService.cs" />
+ <Compile Include="RemoteJob\LiquidOutputModel.cs" />
<Compile Include="RemoteNotifications\DefaultRemoteNotificationsService.cs" />
<Compile Include="RemoteNotifications\IRemoteNotificationsService.cs" />
<Compile Include="Resume\DefaultJobResumeManager.cs" />
@@ -643,7 +644,7 @@
</Target>
<ProjectExtensions>
<VisualStudio>
- <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
+ <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" />
</VisualStudio>
</ProjectExtensions>
</Project> \ No newline at end of file