| | |
| | | LongPressFrameLayout.AddChidren (btnDel); |
| | | |
| | | btnDel.MouseUpEventHandler += (senderDel, eDel) => { |
| | | IO.FileUtils.DeleteFile (sceneFilePath); |
| | | room.SceneFilePathList.Remove (sceneFilePath); |
| | | room.SceneFilePathList.Remove (""); |
| | | room.Save (room.RoomFilePath); |
| | | ShowUserScene (Room.GetRoomByFilePath (room.RoomFilePath)); |
| | | UserDeviceToScene.hasModify = true; |
| | | Alert alert = new Alert ("", $"Are you sure to delete the scenario: {scene.Name}?", Language.StringByID (R.MyInternationalizationString.Cancel), Language.StringByID (R.MyInternationalizationString.Confrim)); |
| | | alert.ResultEventHandler += (sender2, e2) => { |
| | | if (e2) { |
| | | IO.FileUtils.DeleteFile (sceneFilePath); |
| | | room.SceneFilePathList.Remove (sceneFilePath); |
| | | room.SceneFilePathList.Remove (""); |
| | | room.Save (room.RoomFilePath); |
| | | ShowUserScene (Room.GetRoomByFilePath (room.RoomFilePath)); |
| | | UserDeviceToScene.hasModify = true; |
| | | } |
| | | }; |
| | | alert.Show (); |
| | | |
| | | |
| | | |
| | | //if (CommonList.MonitorScenePathList.Count > 0) { |
| | | // foreach (var monitorData in CommonList.MonitorScenePathList) { |