Add PaymentVariantsWindow

This commit is contained in:
2023-11-29 22:48:43 +01:00
parent b1c7b45523
commit 8a6086ba6d
15 changed files with 551 additions and 112 deletions

View File

@ -31,6 +31,7 @@ namespace Elwig.Windows {
CalculateBucketsButton.IsEnabled = valid && last;
DeliveryConfirmationButton.IsEnabled = valid;
OverUnderDeliveryButton.IsEnabled = valid;
PaymentButton.IsEnabled = valid;
}
private async void CalculateBucketsButton_Click(object sender, RoutedEventArgs evt) {
@ -82,8 +83,9 @@ namespace Elwig.Windows {
}
private void PaymentButton_Click(object sender, RoutedEventArgs evt) {
var w = new ChartWindow();
w.Show();
if (SeasonInput.Value is not int year)
return;
App.FocusPaymentVariantsWindow(year);
}
}
}