From eb640ff74968db18921e1ccba9077ec2d55f8172 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Tue, 21 Apr 2026 14:12:40 +0200 Subject: [PATCH] [chore:] file picker, but currently not using the file itself --- MainWindow.axaml.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 56652e9..46f3e71 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -442,4 +442,21 @@ public partial class MainWindow : Window ExportUtility.ExportToCSV(file.Path.AbsolutePath); } + + private async void MnuImpResult_OnClick(object? sender, RoutedEventArgs e) + { + // Hier importieren + var topLevel = GetTopLevel(this); + var file = await topLevel!.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions + { + Title = "CSV-Datei laden", + SuggestedFileType = new FilePickerFileType(".csv-Datei") + { + Patterns = new[] { "*.csv" } + } + + }); + + if (file == null) return; + } } \ No newline at end of file