Some Bugfixes

This commit is contained in:
lorenz.stechauner committed 2024-01-19 00:22:49 +01:00
1 parent 51293baaae
commit 42bf01656e
7 files changed
+20 -8

No files matched your search

+6 -2
View File
@@ -259,8 +259,12 @@ namespace Elwig.Windows {
return;
CommitButton.IsEnabled = false;
Mouse.OverrideCursor = Cursors.AppStarting;
var b = new BillingVariant(v.Year, v.AvNr);
await b.Commit();
try {
var b = new BillingVariant(v.Year, v.AvNr);
await b.Commit();
} catch (Exception exc) {
MessageBox.Show(exc.Message, "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
}
Mouse.OverrideCursor = null;
RevertButton.IsEnabled = true;
await App.HintContextChange();