| | |
| | | { |
| | | function.roomIdList.Remove(room.sid); |
| | | } |
| | | if (changeList.Contains(function)) |
| | | { |
| | | changeList.Remove(function); |
| | | }else |
| | | { |
| | | changeList.Add(function); |
| | | } |
| | | }; |
| | | btn.MouseUpEventHandler = (sender, e) => { |
| | | btn.IsSelected = !btn.IsSelected; |
| | |
| | | else |
| | | { |
| | | function.roomIdList.Remove(room.sid); |
| | | } |
| | | if (changeList.Contains(function)) |
| | | { |
| | | changeList.Remove(function); |
| | | } |
| | | else |
| | | { |
| | | changeList.Add(function); |
| | | } |
| | | }; |
| | | } |
| | |
| | | void LoadEvent_SaveRoomData() |
| | | { |
| | | btnConfrim.MouseUpEventHandler = (sender, e) => { |
| | | foreach(var f in changeList) |
| | | { |
| | | f.SaveFunctionData(); |
| | | } |
| | | room.SaveRoomData(); |
| | | room.GetRoomFunctions(true); |
| | | bodyView.RemoveFromParent(); |