예제 #1
0
        public void TurnOffCabinButtonForFloor(string numberFloor)
        {
            CabinButton cabinButton = new CabinButton();

            foreach (var item in ltCabinButton)
            {
                if (item.Name == numberFloor)
                {
                    cabinButton.ChangeColor(item.Butons);
                }
            }
        }
예제 #2
0
        public void CreateButton(string name, Button button)
        {
            CabinButton _cabinButton = new CabinButton(name, button);

            ltCabinButton.Add(_cabinButton);
        }