aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Printing')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
index 9856faf3d..938d99451 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
@@ -104,22 +104,19 @@ namespace Tango.PPC.UI.Printing
_notificationProvider.ReleaseGlobalBusyMessage();
LogManager.Log(ex);
- var vm = await _notificationProvider.ShowDialog(new InsufficientLiquidQuantityViewVM(ex, _machineProvider.MachineOperator.MachineStatus.AutoInkFillingDisabled));
+ var vm = await _notificationProvider.ShowDialog(new InsufficientLiquidQuantityViewVM(ex, _machineProvider.MachineOperator.MachineStatus.AutoInkFillingEnabled));
- if (vm.EnableAutoInkFillingOnExit)
+ if (vm.StartAutoInkFillingOnExit)
{
try
{
- _notificationProvider.SetGlobalBusyMessage("Enabling auto ink filling...");
- await _machineProvider.MachineOperator.SendRequest<SetInkAutoFillingModeRequest, SetInkAutoFillingModeResponse>(new SetInkAutoFillingModeRequest()
- {
- Disabled = false
- });
+ _notificationProvider.SetGlobalBusyMessage("Starting ink filling...");
+ await _machineProvider.MachineOperator.SendRequest<InitiateInkFillingRequest, InitiateInkFillingResponse>(new InitiateInkFillingRequest());
}
catch (Exception exx)
{
- LogManager.Log(exx, "Error enabling ink filling.");
- await _notificationProvider.ShowError($"Error enabling auto ink filling.\n{ex.Message}");
+ LogManager.Log(exx, "Error starting ink filling.");
+ await _notificationProvider.ShowError($"Error starting ink filling.\n{ex.Message}");
}
finally
{