aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
index e15a5a0bd..fb43b55b3 100644
--- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
+++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
@@ -154,6 +154,7 @@ namespace Tango.Integration.Operation
EmergencyNotificationProvider = new UsbEmergencyNotificationProvider("COM1");
EnableJobLiquidQuantityValidation = true;
FailsWithAdapter = true;
+ IsSpoolReplaced = true;
ContinuousRequestTimeout = TimeSpan.FromSeconds(2);
ResetInkFllingStatus();
}
@@ -651,6 +652,11 @@ namespace Tango.Integration.Operation
/// </summary>
public TimeSpan ContinuousRequestTimeout { get; set; }
+ /// <summary>
+ /// Gets a value indicating whether the spool was replaced after the last job.
+ /// </summary>
+ public bool IsSpoolReplaced { get; private set; }
+
#endregion
#region Virtual Methods
@@ -1018,6 +1024,11 @@ namespace Tango.Integration.Operation
{
OnMachineStateChanged(MachineStatus.State);
}
+
+ if (MachineStatus.SpoolState == SpoolState.Absent)
+ {
+ IsSpoolReplaced = true;
+ }
}
/// <summary>
@@ -1348,6 +1359,8 @@ namespace Tango.Integration.Operation
/// <param name="job">The job.</param>
protected virtual void OnPrintingEnded(JobHandler handler, Job job)
{
+ IsSpoolReplaced = false;
+
LogManager.Log("Raising printing ended event...");
PrintingEnded?.Invoke(this, new PrintingEventArgs(handler, job)