예제 #1
0
 public static BaseAction CreateBackStepAction(this UpdateRotationSpeedAction a)
 {
     return(new UpdateRotationSpeedAction()
     {
         NewRotationSpeed = a.OldRotationSpeed,
         OldRotationSpeed = a.NewRotationSpeed,
         Duration = a.Duration
     });
 }
예제 #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
     });
 }
예제 #3
0
 private BaseAction CreateBackStepAction(UpdateRotationSpeedAction action)
 {
     return(new UpdateRotationSpeedAction()
     {
         NewRotationSpeed = action.OldRotationSpeed,
         OldRotationSpeed = action.NewRotationSpeed,
         Duration = action.Duration
     });
 }
예제 #4
0
 private void Execute(UpdateRotationSpeedAction action, int notifyId)
 {
     InverterController.Change(action.NewRotationSpeed);
     NotifyExecuted(notifyId);
 }