| | |
| | | roomPageView.AddChidren(roomBackView); |
| | | var roomBG = new Button() |
| | | { |
| | | UnSelectedImagePath = "Room/HomeBG.png", |
| | | //UnSelectedImagePath = "Room/HomeBG.png", |
| | | UnSelectedImagePath = room.BackgroundImage |
| | | }; |
| | | roomBackView.AddChidren(roomBG); |
| | | var roomName = new Button() |
| | |
| | | Width = Application.GetMinRealAverage(100), |
| | | Height = Application.GetMinRealAverage(100), |
| | | UnSelectedImagePath = "Item/List.png", |
| | | SelectedImagePath = "Item/ListSelected.png" |
| | | }; |
| | | roomBackView.AddChidren(roomListBtn); |
| | | |
| | | roomListBtn.MouseUpEventHandler += (send, e) => |
| | | { |
| | | //var roomList = new Device.Room.RoomManagement(); |
| | | //HomePage.Instance.AddChidren(roomList); |
| | | //HomePage.Instance.PageIndex += 1; |
| | | //roomList.Show(); |
| | | //roomList.action += () => |
| | | //{ |
| | | // Show(); |
| | | //}; |
| | | if(room.IsLove) |
| | | { |
| | | return; |
| | | } |
| | | var editRoom = new Device.Room.EditRoom(); |
| | | HomePage.Instance.AddChidren(editRoom); |
| | | HomePage.Instance.PageIndex += 1; |
| | |
| | | { |
| | | Show(); |
| | | }; |
| | | |
| | | }; |
| | | } |
| | | } |
| | |
| | | Text = Language.StringByID(R.MyInternationalizationString.Favorite), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextSize = 18, |
| | | TextSize = 18 |
| | | }; |
| | | roomBackView.AddChidren(roomName); |
| | | var roomListBtn = new Button() |