public static BaseAction CreateBackStepAction(this UpdateRotationSpeedAction a) { return(new UpdateRotationSpeedAction() { NewRotationSpeed = a.OldRotationSpeed, OldRotationSpeed = a.NewRotationSpeed, Duration = a.Duration }); }
public static void ExecuteAction(this UpdateRotationSpeedAction a, int actionId = 0) { Messenger.Default.Send(new UpdateInverterMessage() { RotationSpeed = a.NewRotationSpeed, Duration = a.Duration, BackNotifyId = actionId }); }
private BaseAction CreateBackStepAction(UpdateRotationSpeedAction action) { return(new UpdateRotationSpeedAction() { NewRotationSpeed = action.OldRotationSpeed, OldRotationSpeed = action.NewRotationSpeed, Duration = action.Duration }); }
private void Execute(UpdateRotationSpeedAction action, int notifyId) { InverterController.Change(action.NewRotationSpeed); NotifyExecuted(notifyId); }