From 626b0581199eb6fda21a8d11e0e12478d80f9565 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 7 Jul 2025 15:52:59 +0200 Subject: [PATCH] Add a button to copy masters name from first CREWA entry --- ENI2/DetailRootControl.xaml.cs | 4 +- .../PortNotificationDetailControl.xaml | 4 +- .../PortNotificationDetailControl.xaml.cs | 21 ++++++++++ ENI2/ENI2.csproj | 7 ++++ ENI2/EditControls/SelectCrewMemberDialog.xaml | 32 +++++++++++++++ .../SelectCrewMemberDialog.xaml.cs | 41 +++++++++++++++++++ ENI2/Properties/Resources.Designer.cs | 18 ++++++++ ENI2/Properties/Resources.resx | 6 +++ .../CrewPreArrivalControl.xaml | 1 + .../CrewPreArrivalControl.xaml.cs | 26 +++++++++++- 10 files changed, 155 insertions(+), 5 deletions(-) create mode 100644 ENI2/EditControls/SelectCrewMemberDialog.xaml create mode 100644 ENI2/EditControls/SelectCrewMemberDialog.xaml.cs diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs index 039cd0d5..93c28cde 100644 --- a/ENI2/DetailRootControl.xaml.cs +++ b/ENI2/DetailRootControl.xaml.cs @@ -506,7 +506,7 @@ namespace ENI2 this.DetailControl_RequestReload(this.Core.Id.Value); - System.Action SetTabAction = (int x) => + System.Action SetTabAction = x => { // this hopefully happens *after* the view was completely reloaded if (this.detailView.Children[0] is DetailBaseControl currentNewControl) @@ -590,7 +590,7 @@ namespace ENI2 this.DetailControl_RequestReload(this.Core.Id.Value); - System.Action SetTabAction = (int x) => + Action SetTabAction = x => { // this hopefully happens *after* the view was completely reloaded if (this.detailView.Children[0] is DetailBaseControl currentNewControl) diff --git a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml index bae2fbf6..da7a1c00 100644 --- a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml +++ b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml @@ -36,10 +36,12 @@ - + +