From 11744a3d872d44e4fbbd8d98cf6e10ddca7e283b Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 11 Mar 2023 16:35:37 +0100 Subject: [PATCH] More input validation --- WGneu/Helpers/Validator.cs | 13 ++++++++++++- WGneu/Windows/MemberListWindow.xaml | 14 +++++++++----- WGneu/Windows/MemberListWindow.xaml.cs | 12 ++++++++++++ 3 files changed, 33 insertions(+), 6 deletions(-) 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"/>