From db81ac5eb4b912bc23b45e33c7d3d909b5c0636e Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 26 Mar 2025 06:45:03 +0200 Subject: Final touches on X1. --- .../PPC/Modules/Tango.PPC.JobsV2/ViewModelLocator.cs | 14 +++++++++----- .../PPC/Modules/Tango.PPC.JobsV2/ViewModels/MainViewVM.cs | 8 ++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) (limited to 'Software/Visual_Studio/PPC/Modules') 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(); TangoIOC.Default.Register(); TangoIOC.Default.Register(); - if (TangoIOC.Default.GetInstance().BuildType == BuildType.TS1800) - { - TangoIOC.Default.Register(); - } + TangoIOC.Default.Register(); TangoIOC.Default.Register(); } @@ -91,7 +88,14 @@ namespace Tango.PPC.Jobs { get { - return TangoIOC.Default.GetInstance(); + if (TangoIOC.Default.GetInstance().BuildType == BuildType.TS1800) + { + return TangoIOC.Default.GetInstance(); + } + 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(new JobNavigationObject() { Job = e.Job }); -- cgit v1.3.1