示例#1
0
        public void EnableFloorButton(TypeFloor typeFloor)
        {
            FloorButton button = new FloorButton();

            if (typeFloor == TypeFloor.floorup)
            {
                var btnup   = ltFloorButton.Find(name => name.Name == "up");
                var btndown = ltFloorButton.Find(name => name.Name == "down");
                button.HideButton(btndown._Button);
                button.ShowButton(btnup._Button);
            }
            if (typeFloor == TypeFloor.floordown)
            {
                var btnup   = ltFloorButton.Find(name => name.Name == "up");
                var btndown = ltFloorButton.Find(name => name.Name == "down");
                button.ShowButton(btndown._Button);
                button.HideButton(btnup._Button);
            }
            if (typeFloor == TypeFloor.floorboth)
            {
                var btnup   = ltFloorButton.Find(name => name.Name == "up");
                var btndown = ltFloorButton.Find(name => name.Name == "down");
                button.ShowButton(btndown._Button);
                button.ShowButton(btnup._Button);
            }
        }
示例#2
0
 public Floor(int number = 0, int height = 0, TypeFloor typeFloor = TypeFloor.floorboth)
 {
     _number    = number;
     _height    = height;
     _typeFloor = typeFloor;
 }
示例#3
0
 public void CreateFloor(int number, int height, TypeFloor typeFloor)
 {
     _ltFloor.Add(new Floor(number, height, typeFloor));
 }