Büroexporter geschrieben

Bug behoben, falls der Ordner von K2000 nicht excistiert
This commit is contained in:
Husky
2021-07-04 18:40:30 +02:00
parent 5e1738d96e
commit cdde5f5004
6 changed files with 250 additions and 12 deletions

View File

@@ -362,5 +362,21 @@ namespace SanSystem
FrmPrefixSuffix frmPrefixSuffix = new FrmPrefixSuffix();
frmPrefixSuffix.ShowDialog();
}
private void exportFürBüroErstellenToolStripMenuItem_Click(object sender, EventArgs e)
{
using (FolderBrowserDialog fdb = new FolderBrowserDialog())
{
if(fdb.ShowDialog() == DialogResult.OK && !string.IsNullOrEmpty(fdb.SelectedPath))
{
OnExportedExecuted(fdb.SelectedPath);
}
}
}
private async void OnExportedExecuted(string destinationPath)
{
await BüroExporter.ExportAsync(Datenbank.Instance.loadedProjekt,destinationPath);
}
}
}