| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | TextSize=14, |
| | | IsBold=true |
| | | }; |
| | | |
| | | var selectFloorBtn = new Button() |
| | |
| | | }; |
| | | |
| | | floorBtn.Text = Config.Instance.Home.GetCurrentFloorName; |
| | | top.topView.AddChidren(floorBtn); |
| | | top.topView.AddChidren(selectFloorBtn); |
| | | if(Config.Instance.Home.FloorDics.Count>0) |
| | | { |
| | | top.topView.AddChidren(floorBtn); |
| | | top.topView.AddChidren(selectFloorBtn); |
| | | } |
| | | selectFloorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; |
| | | floorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; |
| | | } |
| | |
| | | private void ShowUnallocatedRoom_MouseUpEvent(object sender,MouseEventArgs mouseEventArgs) |
| | | { |
| | | var unalloctedRoom = new UnallocatedRoom(); |
| | | HomePage.Instance.AddChidren(unalloctedRoom); |
| | | HomePage.Instance.PageIndex += 1; |
| | | AddChidren(unalloctedRoom); |
| | | unalloctedRoom.Show(); |
| | | } |
| | | } |