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