| | |
| | | /// </summary> |
| | | VerticalScrolViewLayout contentView; |
| | | |
| | | Button btnAllRoomText; |
| | | Button btnChooseAll; |
| | | |
| | | #endregion |
| | |
| | | }; |
| | | contentView.AddChidren(allRoomView); |
| | | |
| | | Button btnAllRoomText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(280), |
| | | TextID = StringId.All, |
| | | TextSize= CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | allRoomView.AddChidren(btnAllRoomText); |
| | | |
| | | btnChooseAll = new Button() |
| | | { |
| | | X = Application.GetRealWidth(331), |
| | |
| | | IsSelected = true |
| | | }; |
| | | allRoomView.AddChidren(btnChooseAll); |
| | | |
| | | btnAllRoomText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | TextID = StringId.All, |
| | | TextSize= CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | allRoomView.AddChidren(btnAllRoomText); |
| | | |
| | | |
| | | foreach(var room in SpatialInfo.CurrentSpatial.RoomList) |
| | | { |
| | |
| | | }; |
| | | roomView.AddChidren(btnLine); |
| | | |
| | | Button btnRoomText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(280), |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = room.floorName + room.roomName, |
| | | }; |
| | | roomView.AddChidren(btnRoomText); |
| | | |
| | | Button btnChoose = new Button() |
| | | { |
| | | X = Application.GetRealWidth(331), |
| | |
| | | Tag = "ChooseIcon" |
| | | }; |
| | | roomView.AddChidren(btnChoose); |
| | | btnChoose.MouseUpEventHandler = (sender, e) => { |
| | | |
| | | Button btnRoomText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | //Width = Application.GetRealWidth(280), |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = room.floorName + room.roomName, |
| | | }; |
| | | roomView.AddChidren(btnRoomText); |
| | | btnRoomText.MouseUpEventHandler = (sender, e) => { |
| | | btnChoose.IsSelected = !btnChoose.IsSelected; |
| | | LoadEvent_RoomSelected(room, btnChoose.IsSelected); |
| | | }; |