AreaComAdminWindow: Fix GstNrInput validation by removing CheckGstNr

This commit is contained in:
2024-03-05 23:06:34 +01:00
parent d6f1ce01fb
commit ea6621ee57
3 changed files with 1 additions and 14 deletions

View File

@ -589,11 +589,6 @@ namespace Elwig.Helpers {
return new(true, null); return new(true, null);
} }
public static ValidationResult CheckGstNr(TextBox input, bool required) {
// TODO
return new(true, "Not implemented yet");
}
public static ValidationResult CheckGradatoinOe(TextBox input, bool required) { public static ValidationResult CheckGradatoinOe(TextBox input, bool required) {
var res = CheckInteger(input, required, 3); var res = CheckInteger(input, required, 3);
if (!res.IsValid) { if (!res.IsValid) {

View File

@ -184,7 +184,7 @@
<Label Content="Parzelle(n):" Margin="10,70,0,0" Grid.Column="0"/> <Label Content="Parzelle(n):" Margin="10,70,0,0" Grid.Column="0"/>
<TextBox x:Name="GstNrInput" Margin="0,70,10,0" Grid.Column="1" HorizontalAlignment="Stretch" <TextBox x:Name="GstNrInput" Margin="0,70,10,0" Grid.Column="1" HorizontalAlignment="Stretch"
TextChanged="GstNrInput_TextChanged" LostFocus="GstNrInput_LostFocus"/> TextChanged="TextBox_TextChanged"/>
<Label Content="Fläche:" Margin="10,100,0,0" Grid.Column="0"/> <Label Content="Fläche:" Margin="10,100,0,0" Grid.Column="0"/>
<ctrl:UnitTextBox x:Name="AreaInput" Unit="m²" TextChanged="IntegerInput_TextChanged" <ctrl:UnitTextBox x:Name="AreaInput" Unit="m²" TextChanged="IntegerInput_TextChanged"

View File

@ -441,13 +441,5 @@ namespace Elwig.Windows {
private void FbNrInput_LostFocus(object sender, RoutedEventArgs evt) { private void FbNrInput_LostFocus(object sender, RoutedEventArgs evt) {
InputLostFocus((TextBox)sender, Validator.CheckFbNr); InputLostFocus((TextBox)sender, Validator.CheckFbNr);
} }
private void GstNrInput_TextChanged(object sender, RoutedEventArgs evt) {
InputTextChanged((TextBox)sender, Validator.CheckGstNr);
}
private void GstNrInput_LostFocus(object sender, RoutedEventArgs evt) {
InputLostFocus((TextBox)sender, Validator.CheckGstNr);
}
} }
} }