DeliveryScheduleAdminWindow: Fix AncmtToDateInput input bug
All checks were successful
Test / Run tests (push) Successful in 2m3s
All checks were successful
Test / Run tests (push) Successful in 2m3s
This commit is contained in:
@ -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"/>
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user