DeliveryScheduleAdminWindow: Fix AncmtToDateInput input bug
All checks were successful
Test / Run tests (push) Successful in 2m3s

This commit is contained in:
2024-08-20 23:39:08 +02:00
parent fe7f9d675b
commit 84d8d0cecb
2 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@
<Label Content="Datum/Zwst.:" Margin="10,10,0,10"/> <Label Content="Datum/Zwst.:" Margin="10,10,0,10"/>
<TextBox x:Name="DateInput" Text="{Binding DateString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" <TextBox x:Name="DateInput" Text="{Binding DateString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Margin="0,10,10,10" Width="77" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right" Margin="0,10,10,10" Width="77" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right"
TextChanged="DateInput_TextChanged" LostFocus="DateInput_LostFocus"/> TextChanged="ScheduleDateInput_TextChanged" LostFocus="DateInput_LostFocus"/>
<ComboBox x:Name="BranchInput" SelectedItem="{Binding Branch, Mode=TwoWay}" ItemsSource="{Binding BranchSource, Mode=TwoWay}" <ComboBox x:Name="BranchInput" SelectedItem="{Binding Branch, Mode=TwoWay}" ItemsSource="{Binding BranchSource, Mode=TwoWay}"
DisplayMemberPath="Name" TextSearch.TextPath="Name" DisplayMemberPath="Name" TextSearch.TextPath="Name"
Margin="82,10,10,10" Width="150" Grid.Column="1" HorizontalAlignment="Left"/> Margin="82,10,10,10" Width="150" Grid.Column="1" HorizontalAlignment="Left"/>

View File

@ -297,8 +297,8 @@ namespace Elwig.Windows {
ViewModel.ControlButtonsVisibility = Visibility.Hidden; ViewModel.ControlButtonsVisibility = Visibility.Hidden;
} }
private new void DateInput_TextChanged(object sender, TextChangedEventArgs evt) { private void ScheduleDateInput_TextChanged(object sender, TextChangedEventArgs evt) {
base.DateInput_TextChanged(sender, evt); DateInput_TextChanged(sender, evt);
if (ViewModel.Date is DateOnly date) { if (ViewModel.Date is DateOnly date) {
ViewModel.AncmtToDate = date.AddDays(-2); ViewModel.AncmtToDate = date.AddDays(-2);
} }