BaseDataWindow: implement area commitment type list

This commit is contained in:
lorenz.stechauner committed 2023-11-06 19:35:48 +01:00
1 parent 7e6aaf514b
commit 4fff89029d
5 files changed
+275 -8

No files matched your search

+4 -2
View File
@@ -49,6 +49,9 @@ namespace Elwig.Windows {
SeasonPenaltyPerKgInput.Unit = $"{sym}/kg";
SeasonPenaltyInput.Unit = sym;
SeasonPenaltyNoneInput.Unit = sym;
AreaCommitmentTypePenaltyPerKgInput.Unit = $"{sym}/kg";
AreaCommitmentTypePenaltyInput.Unit = sym;
AreaCommitmentTypePenaltyNoneInput.Unit = sym;
} else {
SeasonModifierList.ItemsSource = null;
SeasonMaxKgPerHaInput.Text = "";
@@ -102,10 +105,9 @@ namespace Elwig.Windows {
Season_Changed(sender, evt);
}
private void SeasonMoneyInput_TextChanged(object sender, TextChangedEventArgs evt) {
private void SeasonPenaltyInput_TextChanged(object sender, TextChangedEventArgs evt) {
InputTextChanged((TextBox)sender, Validator.CheckDecimal((TextBox)sender, false, 4, 2));
Season_Changed(sender, evt);
}
}
}