Alternativ.UserInterface.go C# (CSharp) Method

go() public method

Abarbeitung des Fahrstuhlalgorithmzus
public go ( ) : void
return void
        public void go()
        {
            if (checkforoverload() == true)
            {
                return;

            }
            else if (wishesHere() == true)
            {
                openDoor();
                button_open_door.Enabled = true;
                button_close_door.Enabled = true;
                busy = true;

            }

            else if (wishesInDirection() == true)
            {
                floorchange();
                busy = true;
                timer_fahren.Start();

            }

            else if (wishesHereInOppositeDirection())
            {
                switchDirection();
                busy = true;
                button_open_door.Enabled = true;
                button_close_door.Enabled = true;
                openDoor();

            }

            else if (WishesInOppositeDirection())
            {
                switchDirection();
                busy = true;
                floorchange();
                timer_fahren.Start();

            }

            else busy = false;
        }