| | |
| | | }.Show(bodyView); |
| | | return; |
| | | } |
| | | foreach (var tempRoom in DB_ResidenceData.functionList.scenes) |
| | | foreach (var tempRoom in FunctionList.List.scenes) |
| | | { |
| | | if (scene.name == tempRoom.name) |
| | | { |
| | |
| | | } |
| | | } |
| | | scene.SaveSceneData(true); |
| | | DB_ResidenceData.functionList.scenes.Add(scene); |
| | | FunctionList.List.scenes.Add(scene); |
| | | backAction(); |
| | | this.RemoveFromParent(); |
| | | } |
| | |
| | | { |
| | | Action action = () => |
| | | { |
| | | DB_ResidenceData.functionList.DeleteScene(scene,true); |
| | | FunctionList.List.DeleteScene(scene,true); |
| | | backAction(); |
| | | this.RemoveFromParent(); |
| | | }; |
| | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | List<string> sceneNameList = new List<string>(); |
| | | foreach (var tempScene in DB_ResidenceData.functionList.scenes) |
| | | foreach (var tempScene in FunctionList.List.scenes) |
| | | { |
| | | sceneNameList.Add(tempScene.name); |
| | | } |