コード例 #1
0
        public void createFloorRequestButtons(int amountOfFloors)
        {
            int buttonFloor = 1;

            for (int i = 0; i < amountOfFloors; i++)
            {
                var floorRequestButton = new FloorRequestButton(floorRequestButtonID, "off", buttonFloor);
                floorRequestButtonsList.Add(floorRequestButton);
                buttonFloor++;
                floorRequestButtonID++;
            }
        }
コード例 #2
0
        public void createBasementFloorRequestButtons(int amountOfBasements)
        {
            int buttonFloor = -1;

            for (int i = 0; i < amountOfBasements; i++)
            {
                var floorRequestButton = new FloorRequestButton(floorRequestButtonID, "off", buttonFloor);
                floorRequestButtonsList.Add(floorRequestButton);
                buttonFloor--;
                floorRequestButtonID++;
            }
        }