aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs
index d2c229187..39963201e 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs
@@ -15,6 +15,7 @@ using Tango.Core.Commands;
using Tango.Core.DI;
using Tango.DragAndDrop;
using Tango.PPC.Common;
+using Tango.PPC.Jobs.Dialogs;
using Tango.PPC.Jobs.Messages;
using Tango.PPC.Jobs.Views;
@@ -263,11 +264,15 @@ namespace Tango.PPC.Jobs.ViewModels
/// </summary>
private async void AddNewJob()
{
+ var vm = await NotificationProvider.ShowDialog<JobTypePickerViewVM>();
+
+ if (!vm.DialogResult) return;
+
Job job = new Job();
job.Name = "untitled";
job.CreationDate = DateTime.UtcNow;
job.JobStatus = JobStatuses.Draft;
- job.JobType = JobTypes.Sewing;
+ job.JobType = vm.SelectedJobType.Value;
job.ColorSpaceGuid = Adapter.ColorSpaces.FirstOrDefault(x => x.Code == ColorSpaces.RGB.ToInt32()).Guid;
job.MachineGuid = ApplicationManager.Machine.Guid;
job.UserGuid = AuthenticationProvider.CurrentUser.Guid;