From 498eed10f53badf27e19476bb67a67bbd9e9bfea Mon Sep 17 00:00:00 2001 From: Sander van Vliet Date: Tue, 21 Nov 2023 14:33:28 +0100 Subject: [PATCH] Remove open route dialog --- .../DelegateDecorator.cs | 5 - .../IWindowService.cs | 1 - .../RoadCaptain.App.RouteBuilder.csproj | 6 - .../Views/OpenRouteDialog.axaml | 116 ------------------ .../Views/OpenRouteDialog.axaml.cs | 71 ----------- .../Views/RouteSegmentListView.axaml.cs | 1 - .../WindowService.cs | 18 --- 7 files changed, 218 deletions(-) delete mode 100644 src/RoadCaptain.App.RouteBuilder/Views/OpenRouteDialog.axaml delete mode 100644 src/RoadCaptain.App.RouteBuilder/Views/OpenRouteDialog.axaml.cs diff --git a/src/RoadCaptain.App.RouteBuilder/DelegateDecorator.cs b/src/RoadCaptain.App.RouteBuilder/DelegateDecorator.cs index e1a161ff..bb0dcdff 100644 --- a/src/RoadCaptain.App.RouteBuilder/DelegateDecorator.cs +++ b/src/RoadCaptain.App.RouteBuilder/DelegateDecorator.cs @@ -65,11 +65,6 @@ public async Task ShowWhatIsNewDialog(Release release) return await InvokeIfNeededAsync(() => _decorated.ShowSaveFileDialog(previousLocation, suggestedFileName)); } - public async Task<(PlannedRoute? PlannedRoute, string? RouteFilePath)> ShowOpenRouteDialog() - { - return await InvokeIfNeededAsync(() => _decorated.ShowOpenRouteDialog()); - } - public async Task ShowQuestionDialog(string title, string message) { return await InvokeIfNeededAsync(() => _decorated.ShowQuestionDialog(title, message)); diff --git a/src/RoadCaptain.App.RouteBuilder/IWindowService.cs b/src/RoadCaptain.App.RouteBuilder/IWindowService.cs index 4822d525..35080364 100644 --- a/src/RoadCaptain.App.RouteBuilder/IWindowService.cs +++ b/src/RoadCaptain.App.RouteBuilder/IWindowService.cs @@ -22,7 +22,6 @@ public interface IWindowService : RoadCaptain.App.Shared.IWindowService Task ShowLogInDialog(Window owner); Window? GetCurrentWindow(); Task ShowSaveFileDialog(string? previousLocation, string? suggestedFileName = null); - Task<(PlannedRoute? PlannedRoute, string? RouteFilePath)> ShowOpenRouteDialog(); Task ShowQuestionDialog(string title, string message); } } \ No newline at end of file diff --git a/src/RoadCaptain.App.RouteBuilder/RoadCaptain.App.RouteBuilder.csproj b/src/RoadCaptain.App.RouteBuilder/RoadCaptain.App.RouteBuilder.csproj index 01bc83b2..c27cc8ea 100644 --- a/src/RoadCaptain.App.RouteBuilder/RoadCaptain.App.RouteBuilder.csproj +++ b/src/RoadCaptain.App.RouteBuilder/RoadCaptain.App.RouteBuilder.csproj @@ -67,10 +67,4 @@ - - - OpenRouteDialog.axaml - Code - - diff --git a/src/RoadCaptain.App.RouteBuilder/Views/OpenRouteDialog.axaml b/src/RoadCaptain.App.RouteBuilder/Views/OpenRouteDialog.axaml deleted file mode 100644 index 1f803117..00000000 --- a/src/RoadCaptain.App.RouteBuilder/Views/OpenRouteDialog.axaml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -