From 6c56b49d815afa016a4ce74eed3e4b983c8a161c Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 6 Mar 2022 21:31:48 +0200 Subject: Save grouping segments in file and loading from file. Related Work Items: #6268, #6280 --- .../PMR/Messages/Exports/JobFileBrushStop.proto | 1 + Software/PMR/Messages/Exports/JobFileSegment.proto | 2 + .../Tango.PPC.JobsV2/Dialogs/JobCreationView.xaml | 16 +- .../Tango.PPC.JobsV2/Models/BrushStopModel.cs | 2 +- .../Modules/Tango.PPC.JobsV2/Models/JobModel.cs | 9 +- .../Tango.PPC.JobsV2/ViewModels/JobViewVM.cs | 21 ++- Software/Visual_Studio/Tango.BL/Entities/Job.cs | 200 +++++++++++++-------- .../Visual_Studio/Tango.BL/Entities/Segment.cs | 22 +++ .../Tango.PMR/Exports/JobFileBrushStop.cs | 36 +++- .../Tango.PMR/Exports/JobFileSegment.cs | 60 ++++++- .../Visual_Studio/Tango.PMR/ExtensionMethods.cs | 12 ++ .../Controls/TouchNumericUpDownConrol.xaml | 9 +- .../TouchColorPickerControls/MultiRangeSlider.cs | 8 +- .../TouchColorPickerCMYKControl.xaml | 6 +- .../TouchColorPickerControl.xaml | 2 + .../TouchColorPickerHSBControl.xaml | 6 +- .../TouchColorPickerLABControl.xaml | 6 +- .../TouchColorPickerRGBControl.xaml | 9 +- 18 files changed, 319 insertions(+), 108 deletions(-) (limited to 'Software') diff --git a/Software/PMR/Messages/Exports/JobFileBrushStop.proto b/Software/PMR/Messages/Exports/JobFileBrushStop.proto index bbcedbf4a..224d86d0f 100644 --- a/Software/PMR/Messages/Exports/JobFileBrushStop.proto +++ b/Software/PMR/Messages/Exports/JobFileBrushStop.proto @@ -29,4 +29,5 @@ message JobFileBrushStop string ColorCatalogGuid = 22; string ColorCatalogItemGuid = 23; bool IsTransparent = 25; + int32 StopIndex = 26; } \ No newline at end of file diff --git a/Software/PMR/Messages/Exports/JobFileSegment.proto b/Software/PMR/Messages/Exports/JobFileSegment.proto index 8a2218ffa..8f81f89e7 100644 --- a/Software/PMR/Messages/Exports/JobFileSegment.proto +++ b/Software/PMR/Messages/Exports/JobFileSegment.proto @@ -10,4 +10,6 @@ message JobFileSegment string Name = 1; double Length = 2; repeated JobFileBrushStop BrushStops = 3; + repeated JobFileSegment Segments = 4; + int32 Repeats = 5; } \ No newline at end of file diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/JobCreationView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/JobCreationView.xaml index 2aac7320a..5ab26458c 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/JobCreationView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/JobCreationView.xaml @@ -30,14 +30,14 @@ Job Details - + - +