Some Bugfixes

This commit is contained in:
2024-01-19 00:19:59 +01:00
parent 51293baaae
commit 42bf01656e
7 changed files with 20 additions and 8 deletions

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();