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++; } }
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++; } }