| | |
| | | /// </summary> |
| | | void LoadRoomRow(Room room) |
| | | { |
| | | roomsListView.AddChidren(new Button() { Height = Application.GetRealHeight(10) }); |
| | | |
| | | var roomRow = new FrameLayout() |
| | | { |
| | | Tag = room.roomName + "row", |
| | |
| | | }; |
| | | roomsListView.AddChidren(roomRow); |
| | | |
| | | |
| | | var btnBg = new ImageView() |
| | | { |
| | | Y = Application.GetRealHeight(10), |
| | | Height = Application.GetRealHeight(90), |
| | | Y = Application.GetRealHeight(-50), |
| | | Height = Application.GetRealHeight(192), |
| | | Width = Application.GetRealWidth(343), |
| | | //ImagePath = room.backgroundImage, |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | |
| | | }; |
| | | roomRow.AddChidren(btnRoomName); |
| | | |
| | | var btn = new Button() |
| | | { |
| | | UnSelectedImagePath = "RoomListBg.png", |
| | | }; |
| | | roomRow.AddChidren(btn); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | LoadEvent_SkipEditRoomPage(room, btnRoomName, btnBg, roomRow); |
| | | }; |
| | | btnBg.MouseUpEventHandler = eventHandler; |
| | | roomRow.MouseUpEventHandler = eventHandler; |
| | | btnRoomName.MouseUpEventHandler = eventHandler; |
| | | btn.MouseUpEventHandler = eventHandler; |
| | | } |
| | | |
| | | } |