aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs
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/Dialogs
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/Dialogs')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/ColorSelectionViewVM.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/ColorSelectionViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/ColorSelectionViewVM.cs
index 4deb1e9f5..fe877cd8c 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/ColorSelectionViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/ColorSelectionViewVM.cs
@@ -512,6 +512,7 @@ namespace Tango.PPC.Jobs.Dialogs
if (SelectedBrushStop.ColorSpace == ColorSpaces.LAB)
{
SelectedColorTab = ColorTab.CIELab;
+ SelectedBrushStop.SaveLABBeforeChanges();
}
else if (SelectedBrushStop.ColorSpace == ColorSpaces.Catalog)
{
@@ -983,6 +984,8 @@ namespace Tango.PPC.Jobs.Dialogs
#region Vector Fine tuning
private void OpenVectorFineTuning()
{
+ SelectedBrushStop.SaveLABBeforeChanges();
+
VectorFineTuningDialogVM.Init( SelectedBrushStop, SelectedBrushStop.L, SelectedBrushStop.A, SelectedBrushStop.B, SelectedBrushStop.Color);
IsOpenVectorFineTuningDialog = true;
@@ -1026,6 +1029,11 @@ namespace Tango.PPC.Jobs.Dialogs
TrialsLogEngine.Default.Delete( testColor);
return true;
}
+ else
+ {
+ await NotificationProvider.ShowInfo("The color will not be changed.");
+ SelectedBrushStop.UndoLABChanges();
+ }
return false;
}
return true;