private void Elevator_Changed(object sender, ElevatorStateChangedEventArgs <ElevatorStates> e)
        {
            switch (e.NewState)
            {
            case ElevatorStates.Starting:
                ElevatorPicture.BackgroundImage = ElevatorGUI.Properties.Resources.InsideClosed;
                break;

            case ElevatorStates.Stopping:
                ElevatorPicture.BackgroundImage = ElevatorGUI.Properties.Resources.InsideClosed;
                break;

            case ElevatorStates.ChangingFloors:
                break;

            case ElevatorStates.OnFloor:
                break;

            case ElevatorStates.Inactive:
                ElevatorPicture.BackgroundImage = ElevatorGUI.Properties.Resources.InsideOpen;
                break;

            case ElevatorStates.Parked:
                break;

            default:
                break;
            }
            textBox2.Text = e.Name + " Changed To " + e.NewState.ToString() + System.Environment.NewLine + textBox2.Text;
            PopulateOptions();
        }
 private void Elevator_Changed(object sender, ElevatorStateChangedEventArgs <ElevatorStates> e)
 {
     this.Text = e.Elevator.CurrentFloor.ListNode.EnumValue.ToString();
     AlignElevatorID();
 }