aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2022-06-27 17:54:58 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2022-06-27 17:54:58 +0300
commit59eed0566df33cd821995637e7a7328fa747bc4e (patch)
treefee875979833cc19a74f1f129999ea647ee97b73 /Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models
parent9ff1a837f25cfcd34fff6696d0638237da0f98f9 (diff)
downloadTango-59eed0566df33cd821995637e7a7328fa747bc4e.tar.gz
Tango-59eed0566df33cd821995637e7a7328fa747bc4e.zip
PPC. Vector Fine Tuning. Add notification "The color will net be changed" and undo changes. - by spec.
Related Work Items: #6610
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs
index bba52b830..5ab53223b 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs
@@ -657,6 +657,13 @@ namespace Tango.PPC.Jobs.Models
[JsonIgnore]
public ColorSpaces LastChangedColorSpace { get; set; }
+ [JsonIgnore]
+ public Double LBeforeChange { get; set; }
+ [JsonIgnore]
+ public Double ABeforeChange { get; set; }
+ [JsonIgnore]
+ public Double BBeforeChange { get; set; }
+
#endregion
#region constructors
@@ -965,6 +972,22 @@ namespace Tango.PPC.Jobs.Models
return s;
}
+
+ public void UndoLABChanges()
+ {
+ PreventPropertyUpdate = true;
+ L = LBeforeChange;
+ A = ABeforeChange;
+ PreventPropertyUpdate = false;
+ B = BBeforeChange;
+ }
+
+ public void SaveLABBeforeChanges()
+ {
+ LBeforeChange = L;
+ ABeforeChange = A;
+ BBeforeChange = B;
+ }
#endregion
#region changes