| | |
| | | { |
| | | FrameLayout bodyView; |
| | | VerticalScrolViewLayout contentView; |
| | | Function scene; |
| | | Scene scene; |
| | | Button lastButton; |
| | | Action backAction; |
| | | public SetSceneLocationPage(Function function, Action action) |
| | | public SetSceneLocationPage(Scene s, Action action) |
| | | { |
| | | backAction = action; |
| | | bodyView = this; |
| | | scene = function; |
| | | scene = s; |
| | | } |
| | | |
| | | public void LoadPage() |
| | |
| | | Tag = "ChooseIcon" |
| | | }; |
| | | roomView.AddChidren(btnChoose); |
| | | if(scene.roomIdList.Contains(room.sid)) |
| | | if(scene.roomIds.Contains(room.sid)) |
| | | { |
| | | btnChoose.IsSelected = true; |
| | | lastButton = btnChoose; |
| | |
| | | } |
| | | lastButton = btn; |
| | | btn.IsSelected = true; |
| | | scene.roomIdList = new System.Collections.Generic.List<string>(); |
| | | scene.roomIdList.Add(room.sid); |
| | | scene.roomIds = new System.Collections.Generic.List<string>(); |
| | | scene.roomIds.Add(room.sid); |
| | | this.RemoveFromParent(); |
| | | backAction(); |
| | | }; |