From afaa83f7b7a9fe78e34d069a43b0f2d61cc38b69 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 3 Sep 2024 22:47:14 +0300 Subject: Fixed rounding of liquid volumes CMYK and numeric controls. Better support for TS-1800 waste replace process. --- Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs index 9b47cf390..67b007371 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs @@ -116,7 +116,14 @@ namespace Tango.PPC.UI.ViewModels if (MachineProvider.IsConnected) { - await MachineProvider.MachineOperator.CompleteWasteReplacement(vm.DialogResult); + try + { + await MachineProvider.MachineOperator.CompleteWasteReplacement(vm.DialogResult); + } + catch (Exception ex) + { + await NotificationProvider.ShowError($"Could not complete the process correctly.\n{ex.Message}"); + } } }); } -- cgit v1.3.1