[fix:] csv-export created json-file...
This commit is contained in:
+5
-4
@@ -692,17 +692,18 @@ public partial class MainWindow : Window
|
||||
var file = await topLevel!.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
Title = "CSV-Datei speichern",
|
||||
SuggestedFileName = "spplus_ergebnisse.json",
|
||||
SuggestedFileType = new FilePickerFileType(".json-Datei")
|
||||
SuggestedFileName = "spplus_ergebnisse.csv",
|
||||
SuggestedFileType = new FilePickerFileType(".csv-Datei")
|
||||
{
|
||||
Patterns = new[] { "*.json" }
|
||||
Patterns = new[] { "*.csv" }
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (file == null) return;
|
||||
|
||||
ExportUtility.ExportResultsToJson(file.Path.LocalPath);
|
||||
//ExportUtility.ExportResultsToJson(file.Path.LocalPath);
|
||||
ExportUtility.ExportToCSV(file.Path.LocalPath);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user