| | |
| | | //2020-12-03 修改图片加载方法 |
| | | ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg); |
| | | |
| | | var roomViewbgColor = new Button() |
| | | { |
| | | Height = Application.GetRealWidth(192), |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | BackgroundColor = 0x19333333, |
| | | }; |
| | | roomView.AddChidren(roomViewbgColor); |
| | | |
| | | var btnFloorAndRoomName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | |
| | | //roomView.AddChidren(environmentalView); |
| | | #endregion |
| | | |
| | | var roomViewbgColor = new Button() |
| | | { |
| | | Height = Application.GetRealWidth(192), |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | BackgroundColor = 0x19333333, |
| | | }; |
| | | roomView.AddChidren(roomViewbgColor); |
| | | |
| | | var btnAllClose = new Button() |
| | | { |
| | |
| | | // BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | //}; |
| | | //roomView.AddChidren(btn); |
| | | |
| | | roomViewbgColor.MouseUpEventHandler += (sender, e) => |
| | | EventHandler <MouseEventArgs> roomRowClick = (sender, e) => |
| | | { |
| | | Action ReloadRoomName = () => |
| | | { |
| | |
| | | view.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | roomViewbgColor.MouseUpEventHandler = roomRowClick; |
| | | btnFloorAndRoomName.MouseUpEventHandler = roomRowClick; |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 记载小图房间row |