Beispiel #1
0
 private void ElevatorOnElevatorChangedState(object sender, Elevator.ElevatorChangedStateArgs e)
 {
     if (e.State == Elevator.ElevatorState.MovingUp || e.State == Elevator.ElevatorState.MovingDown)
     {
         _StartMoving.Play();
         _Movement.Play();
     }
     else if (e.State == Elevator.ElevatorState.Idle)
     {
         _Bell.Play();
         _Movement.Stop();
     }
 }
 private void ElevatorOnElevatorChangedState(object sender, Elevator.ElevatorChangedStateArgs e)
 {
     UpdateText();
 }