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

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

            ltCabinButton.Add(_cabinButton);
        }