From 09623f144297db30dce0f71f0470593b24b7ee2f Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Fri, 10 Nov 2023 14:13:06 +0100 Subject: [PATCH] bugfixes and small improvements for 0.9.5 test results --- .../EditTimesAgencyIncomingControl.xaml.cs | 3 +- .../EditTimesAgencyOutgoingControl.xaml.cs | 2 + .../EditTimesAgencyShiftingControl.xaml.cs | 2 + src/BreCalClient/EditTimesControl.xaml | 12 +++--- src/BreCalClient/EditTimesControl.xaml.cs | 40 +++++++++---------- .../EditTimesTerminalControl.xaml.cs | 8 ++-- src/BreCalClient/IEditTimesControl.cs | 2 + src/BreCalClient/MainWindow.xaml.cs | 1 + src/BreCalClient/ShipcallControl.xaml.cs | 3 +- src/BreCalClient/ShipcallControlModel.cs | 10 +++++ 10 files changed, 51 insertions(+), 32 deletions(-) diff --git a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs index 3945882..093e20f 100644 --- a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs +++ b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs @@ -46,7 +46,8 @@ namespace BreCalClient this.comboBoxArrivalBerth.ItemsSource = BreCalLists.Berths; this.CopyToControls(); - + + this.Title = this.ShipcallModel.Title; Participant? p = null; if(this.ShipcallModel.AssignedParticipants.ContainsKey(ParticipantType.AGENCY)) diff --git a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs index 652346e..f0369b0 100644 --- a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs +++ b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs @@ -46,6 +46,8 @@ namespace BreCalClient this.comboBoxDepartureBerth.ItemsSource = BreCalLists.Berths; this.CopyToControls(); + this.Title = this.ShipcallModel.Title; + Participant? p = null; if (this.ShipcallModel.AssignedParticipants.ContainsKey(ParticipantType.AGENCY)) p = BreCalLists.Participants.Find(x => x.Id == this.ShipcallModel.AssignedParticipants[ParticipantType.AGENCY].ParticipantId); diff --git a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs index 86b5dfb..adea08e 100644 --- a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs +++ b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs @@ -47,6 +47,8 @@ namespace BreCalClient this.comboBoxArrivalBerth.ItemsSource = BreCalLists.Berths; this.CopyToControls(); + this.Title = this.ShipcallModel.Title; + Participant? p = null; if (this.ShipcallModel.AssignedParticipants.ContainsKey(ParticipantType.AGENCY)) p = BreCalLists.Participants.Find(x => x.Id == this.ShipcallModel.AssignedParticipants[ParticipantType.AGENCY].ParticipantId); diff --git a/src/BreCalClient/EditTimesControl.xaml b/src/BreCalClient/EditTimesControl.xaml index 01a78c9..41fb072 100644 --- a/src/BreCalClient/EditTimesControl.xaml +++ b/src/BreCalClient/EditTimesControl.xaml @@ -13,7 +13,7 @@ - + @@ -24,7 +24,7 @@ -