diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-03-26 06:45:03 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-03-26 06:45:03 +0200 |
| commit | db81ac5eb4b912bc23b45e33c7d3d909b5c0636e (patch) | |
| tree | 8b0394c379ba737db57a462b6d60b9be3c6c6394 /Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2 | |
| parent | 8b6bed67b054c79ea35173504efea7060195cd55 (diff) | |
| download | Tango-db81ac5eb4b912bc23b45e33c7d3d909b5c0636e.tar.gz Tango-db81ac5eb4b912bc23b45e33c7d3d909b5c0636e.zip | |
Final touches on X1.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModelLocator.cs | 14 | ||||
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/MainViewVM.cs | 8 |
2 files changed, 17 insertions, 5 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModelLocator.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModelLocator.cs index 2004d60b7..d3aa7d485 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModelLocator.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModelLocator.cs @@ -22,10 +22,7 @@ namespace Tango.PPC.Jobs TangoIOC.Default.Register<JobSummeryViewVM>(); TangoIOC.Default.Register<JobViewVM>(); TangoIOC.Default.Register<TwineCatalogViewVM>(); - if (TangoIOC.Default.GetInstance<IBuildProvider>().BuildType == BuildType.TS1800) - { - TangoIOC.Default.Register<JobProgressViewVM>(); - } + TangoIOC.Default.Register<JobProgressViewVM>(); TangoIOC.Default.Register<ColorSelectionViewVM>(); } @@ -91,7 +88,14 @@ namespace Tango.PPC.Jobs { get { - return TangoIOC.Default.GetInstance<JobProgressViewVM>(); + if (TangoIOC.Default.GetInstance<IBuildProvider>().BuildType == BuildType.TS1800) + { + return TangoIOC.Default.GetInstance<JobProgressViewVM>(); + } + else + { + return null; + } } } diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/MainViewVM.cs index 1ceb47ebd..5e0d36da5 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/MainViewVM.cs @@ -151,6 +151,14 @@ namespace Tango.PPC.Jobs.ViewModels } else { + if (BuildProvider.MachineType.IsXMachine()) + { + foreach (var item in NotificationProvider.NotificationItems.Where(x => x.CanClose).ToList()) + { + NotificationProvider.PopNotification(item); + } + } + NotificationProvider.PushNotification(new MessageNotificationItem(String.Format("'{0}' completed successfully", e.Job.Name), "Tap to view this job details.", MessageNotificationItem.MessageNotificationItemTypes.Success, () => { NavigationManager.NavigateWithObject<JobsV2Module, JobView, JobNavigationObject>(new JobNavigationObject() { Job = e.Job }); |
