public static void ExecuteAction(this TurnOffInverterAction a, int actionId = 0) { Messenger.Default.Send(new TurnOffInverterMessage() { Head = a.Head, Order = a.Order, Duration = a.Duration, BackNotifyId = actionId }); }
public static BaseAction CreateBackStepAction(this TurnOffInverterAction a) { if (a.RotationSpeed > 0) { return(new TurnOnInverterAction() { Head = a.Head, Order = a.Order, RotationSpeed = a.RotationSpeed }); } else { return(null); } }
private BaseAction CreateBackStepAction(TurnOffInverterAction action) { if (action.RotationSpeed > 0) { return(new TurnOnInverterAction() { Head = action.Head, Order = action.Order, RotationSpeed = action.RotationSpeed }); } else { return(null); } }
private void Execute(TurnOffInverterAction action, int notifyId) { InverterController.TurnOff(); NotifyExecuted(notifyId); }