Messagebox wird angezeigt wenn export fertiggestellt wurde

This commit is contained in:
Husky
2021-07-04 18:51:32 +02:00
parent a0eae3d069
commit c38dd1830b
3 changed files with 51 additions and 59 deletions

View File

@@ -376,7 +376,9 @@ namespace SanSystem
private async void OnExportedExecuted(string destinationPath)
{
await BüroExporter.ExportAsync(Datenbank.Instance.loadedProjekt,destinationPath);
Task<bool> export = Task.Factory.StartNew(() => BüroExporter.Export(Datenbank.Instance.loadedProjekt, destinationPath));
export.ContinueWith(task => MessageBox.Show("Büro export abgeschlossen"));
}
}
}