More input validation

This commit is contained in:
2023-03-11 16:35:37 +01:00
parent b887e0ffe3
commit 11744a3d87
3 changed files with 33 additions and 6 deletions

View File

@ -546,6 +546,10 @@ namespace WGneu.Windows {
UpdateButtons();
}
private void NumericInput_TextChanged(object sender, RoutedEventArgs evt) {
InputTextChanged((TextBox)sender, false, Validator.CheckNumeric);
}
private void MgNrInput_TextChanged(object sender, RoutedEventArgs evt) {
InputTextChanged((TextBox)sender, false, Validator.CheckMgNr);
}
@ -562,6 +566,10 @@ namespace WGneu.Windows {
InputLostFocus((TextBox)sender, true, Validator.CheckPredecessorMgNr);
}
private void BirthdayInput_TextChanged(object sender, RoutedEventArgs evt) {
InputTextChanged((TextBox)sender, true, Validator.CheckPartialDate);
}
private void PlzInput_TextChanged(object sender, RoutedEventArgs evt) {
InputTextChanged((TextBox)sender, false, Validator.CheckPlz);
UpdatePlz((TextBox)sender, OrtInput);
@ -629,5 +637,9 @@ namespace WGneu.Windows {
InputLostFocus((TextBox)sender, true, Validator.CheckPlz);
UpdatePlz((TextBox)sender, BillingOrtInput);
}
private void DateInput_TextChanged(object sender, RoutedEventArgs evt) {
InputTextChanged((TextBox)sender, true, Validator.CheckDate);
}
}
}