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