diff --git a/Elwig/Windows/DeliveryAdminWindow.xaml b/Elwig/Windows/DeliveryAdminWindow.xaml
index a27cb66..118a66e 100644
--- a/Elwig/Windows/DeliveryAdminWindow.xaml
+++ b/Elwig/Windows/DeliveryAdminWindow.xaml
@@ -311,13 +311,15 @@
-
+
-
+
diff --git a/Elwig/Windows/DeliveryAdminWindow.xaml.cs b/Elwig/Windows/DeliveryAdminWindow.xaml.cs
index 47f4562..a11b4d1 100644
--- a/Elwig/Windows/DeliveryAdminWindow.xaml.cs
+++ b/Elwig/Windows/DeliveryAdminWindow.xaml.cs
@@ -775,9 +775,9 @@ namespace Elwig.Windows {
EnableWeighingButtons();
DeliveryList.SelectedItem = null;
HideNewEditDeleteButtons();
- ShowFinishNewPartDeliveryCancelButtons();
UnlockInputs();
InitInputs();
+ ShowFinishNewPartDeliveryCancelButtons();
LockSearchInputs();
}
@@ -1162,5 +1162,18 @@ namespace Elwig.Windows {
private void WeightInput_TextChanged(object sender, TextChangedEventArgs evt) {
InputTextChanged((TextBox)sender);
}
+
+ private void TemperatureAcidInput_TextChanged(object sender, TextChangedEventArgs evt) {
+ InputTextChanged((TextBox)sender, Validator.CheckDecimal((TextBox)sender, false, 2, 1));
+ }
+
+ private void TemperatureAcidInput_LostFocus(object sender, RoutedEventArgs evt) {
+ if (sender is not TextBox tb) return;
+ if (tb.Text.Length > 0) {
+ if (!tb.Text.Contains(',')) tb.Text += ",0";
+ if (tb.Text.EndsWith(",")) tb.Text += "0";
+ }
+ InputLostFocus(tb, Validator.CheckDecimal(tb, false, 2, 1));
+ }
}
}