| | |
| | | }; |
| | | bodyView.AddChidren(roomsListView); |
| | | |
| | | foreach(var room in DB_ResidenceData.residenceData.rooms) |
| | | foreach(var room in DB_ResidenceData.rooms) |
| | | { |
| | | LoadRoomRow(room); |
| | | } |
| | |
| | | |
| | | var btnBg = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(0-(192 - 92) / 2), |
| | | Y = Application.GetRealHeight(0 - (192 - 92) / 2), |
| | | Height = Application.GetRealHeight(192), |
| | | UnSelectedImagePath = room.backgroundImage, |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | }; |
| | | roomRow.AddChidren(btnBg); |
| | | |
| | | //ImageView imageView = new ImageView() |
| | | //{ |
| | | // Height = Application.GetRealHeight(92), |
| | | // Radius = (uint)Application.GetRealWidth(12), |
| | | //}; |
| | | //roomRow.AddChidren(imageView); |
| | | |
| | | var btnShadow = new Button() |
| | | { |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | Text = room.floor + " " + room.name, |
| | | Text = room.floorName + room.name, |
| | | }; |
| | | roomRow.AddChidren(btnRoomName); |
| | | |
| | | btnShadow.MouseUpEventHandler += (sender, e) => { |
| | | LoadEvent_SkipEditRoomPage(room,btnRoomName,btnBg); |
| | | btnShadow.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | LoadEvent_SkipEditRoomPage(room, btnRoomName, btnBg); |
| | | }; |
| | | } |
| | | |