[chore:] file picker, but currently not using the file itself

This commit is contained in:
2026-04-21 14:12:40 +02:00
parent 54a564df04
commit eb640ff749
+17
View File
@@ -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;
}
}