Check temp/acid in DeliveryAdminWindow
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user