| | |
| | | Height = Application.GetRealWidth(28), |
| | | UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | IsSelected = function.roomIds.Contains(room.sid) |
| | | IsSelected = function.roomIds.Contains(room.uid) |
| | | }; |
| | | functionRow.AddChidren(btnChooseIcon); |
| | | LoadEvent_ChangeRoomFunctionList(functionRow, btnChooseIcon, function); |
| | |
| | | Height = Application.GetRealWidth(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }); |
| | | foreach (var tempRoom in DB_ResidenceData.rooms) |
| | | foreach (var tempRoom in DB_ResidenceData.Rooms) |
| | | { |
| | | |
| | | Button btnRoom = new Button() |
| | |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(128), |
| | | Height = Application.GetRealHeight(50), |
| | | Text = tempRoom.name, |
| | | Text = tempRoom.roomName, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | IsSelected = showedFunctionRoomId == tempRoom.sid, |
| | | Tag = tempRoom.sid, |
| | | IsSelected = showedFunctionRoomId == tempRoom.uid, |
| | | Tag = tempRoom.uid, |
| | | }; |
| | | roomListView.AddChidren(btnRoom); |
| | | LoadEvent_ChangeShowedFunctionList(btnRoom, dialog, tempRoom.name); |
| | | LoadEvent_ChangeShowedFunctionList(btnRoom, dialog, tempRoom.roomName); |
| | | |
| | | roomListView.AddChidren(new Button() |
| | | { |