diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-07-15 01:04:34 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-07-15 01:04:34 +0300 |
| commit | cc425e019d3a7d3494ac15ffe213b6b47b1c64ed (patch) | |
| tree | 6db5ec969f92f91c2d05af55216bc4a267cc2370 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobProgressViewVM.cs | |
| parent | 64bcf92608faae31b7cd31ac3da5c7d1d7ebcd0b (diff) | |
| download | Tango-cc425e019d3a7d3494ac15ffe213b6b47b1c64ed.tar.gz Tango-cc425e019d3a7d3494ac15ffe213b6b47b1c64ed.zip | |
Working on PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobProgressViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobProgressViewVM.cs | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobProgressViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobProgressViewVM.cs index f3d16e899..fa5f26c70 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobProgressViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobProgressViewVM.cs @@ -8,7 +8,6 @@ using Tango.Integration.Operation; using Tango.PPC.Common; using Tango.PPC.Common.Navigation; using Tango.PPC.Jobs.AppBarItems; -using Tango.PPC.Jobs.NotificationItems; using Tango.PPC.Jobs.Views; namespace Tango.PPC.Jobs.ViewModels @@ -38,26 +37,14 @@ namespace Tango.PPC.Jobs.ViewModels public override void OnApplicationStarted() { - MachineProvider.MachineOperator.PrintingStarted += PrintingStarted; + MachineProvider.MachineOperator.PrintingStarted += MachineOperator_PrintingStarted; } - private void PrintingStarted(object sender, JobHandler jobHandler) + private void MachineOperator_PrintingStarted(object sender, PrintingEventArgs e) { - Job = jobHandler.Job; - jobHandler.StatusChanged += JobHandler_StatusChanged; - jobHandler.Stopped += JobHandler_Stopped; - jobHandler.Completed += JobHandler_Completed; - } - - private void JobHandler_Completed(object sender, EventArgs e) - { - InvokeUI(() => - { - NotificationProvider.PushNotification<JobCompletedNotificationItem>().Pressed += (_, __) => - { - NavigationManager.NavigateTo<JobsModule>(nameof(JobView)); - }; - }); + Job = e.Job; + e.JobHandler.StatusChanged += JobHandler_StatusChanged; + e.JobHandler.Stopped += JobHandler_Stopped; } public override void OnNavigatedFrom() |
