using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
using Tango.Integration.Operation;
using Tango.PPC.Common.Notifications;
namespace Tango.PPC.Jobs.AppButtons
{
public class StartPrintingButton : AppButton
{
public StartPrintingButton(RelayCommand command, IMachineOperator op) : base("DYE", command)
{
op.StatusChanged += Op_StatusChanged;
Op_StatusChanged(op, op.Status);
}
private void Op_StatusChanged(object sender, MachineStatuses status)
{
IsEnabled = (sender as IMachineOperator).CanPrint;
}
}
}