diff --git a/WGneu/Helpers/Validator.cs b/WGneu/Helpers/Validator.cs
index c5e3e39..926d0d2 100644
--- a/WGneu/Helpers/Validator.cs
+++ b/WGneu/Helpers/Validator.cs
@@ -251,7 +251,8 @@ namespace WGneu.Helpers {
}
public static ValidationResult CheckUstId(TextBox input, bool optional) {
- return new(false, "Not implemented yet");
+ // TODO
+ return new(true, "Not implemented yet");
}
public static ValidationResult CheckMgNr(TextBox input, bool optional, AppDbContext ctx, Member m) {
@@ -282,5 +283,15 @@ namespace WGneu.Helpers {
return new(true, null);
}
+
+ public static ValidationResult CheckDate(TextBox input, bool optional) {
+ // TODO
+ return new(true, "Not implemented yet");
+ }
+
+ public static ValidationResult CheckPartialDate(TextBox input, bool optional) {
+ // TODO
+ return new(true, "Not implemented yet");
+ }
}
}
diff --git a/WGneu/Windows/MemberListWindow.xaml b/WGneu/Windows/MemberListWindow.xaml
index 2a8dcdd..30d57b6 100644
--- a/WGneu/Windows/MemberListWindow.xaml
+++ b/WGneu/Windows/MemberListWindow.xaml
@@ -139,7 +139,8 @@
TextChanged="TextBox_TextChanged"/>
-
+
-
+
-
+
-
+
-
diff --git a/WGneu/Windows/MemberListWindow.xaml.cs b/WGneu/Windows/MemberListWindow.xaml.cs
index e2c7832..3a36f73 100644
--- a/WGneu/Windows/MemberListWindow.xaml.cs
+++ b/WGneu/Windows/MemberListWindow.xaml.cs
@@ -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);
+ }
}
}