From daf20a49b3affdebb567e5db5f58bfc70834b876 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 27 Jan 2025 15:47:28 +0100 Subject: [PATCH] Added sheet / logic to part 5 Ship data --- ENI2/DetailBaseControl.cs | 7 + ENI2/DetailRootControl.xaml | 2 +- ENI2/DetailRootControl.xaml.cs | 1 + .../ArrivalNotificationDetailControl.xaml.cs | 13 +- .../BorderPoliceDetailControl.xaml.cs | 13 +- ...DepartureNotificationDetailControl.xaml.cs | 13 +- ...timeHealthDeclarationDetailControl.xaml.cs | 13 +- .../OverViewDetailControl.xaml.cs | 13 +- .../PSC72hDetailControl.xaml.cs | 13 +- .../PortCallDetailControl.xaml.cs | 13 +- .../PortNotificationDetailControl.xaml.cs | 13 +- .../SecurityDetailControl.xaml.cs | 13 +- .../ShipDataDetailControl.xaml.cs | 17 +- .../TowageDetailControl.xaml.cs | 13 +- .../WasteDetailControl.xaml.cs | 13 +- ENI2/ENI2.csproj | 7 + ENI2/Properties/Resources.Designer.cs | 99 +++++++++ ENI2/Properties/Resources.resx | 33 +++ ENI2/SheetDisplayControls/PortControl.xaml.cs | 13 +- .../PreArrivalControl.xaml.cs | 14 +- .../PreDepartureControl.xaml.cs | 13 +- .../SheetDisplayControls/ShipDataControl.xaml | 191 ++++++++++++++++++ .../ShipDataControl.xaml.cs | 173 ++++++++++++++++ .../VoyageControl.xaml.cs | 14 +- 24 files changed, 529 insertions(+), 198 deletions(-) create mode 100644 ENI2/SheetDisplayControls/ShipDataControl.xaml create mode 100644 ENI2/SheetDisplayControls/ShipDataControl.xaml.cs diff --git a/ENI2/DetailBaseControl.cs b/ENI2/DetailBaseControl.cs index 13681b01..f8142630 100644 --- a/ENI2/DetailBaseControl.cs +++ b/ENI2/DetailBaseControl.cs @@ -185,6 +185,13 @@ namespace ENI2 this.ResetControlCache?.Invoke(messageGroupName); } + protected virtual void ScrollViewer_PreviewMouseWheel(object sender, System.Windows.Input.MouseWheelEventArgs e) + { + ScrollViewer scv = (ScrollViewer)sender; + scv.ScrollToVerticalOffset(scv.VerticalOffset - e.Delta); + e.Handled = true; + } + #region event handling for control content changes (signal dirty etc) protected void RegisterTextboxChange(TextBox textBox, Message.NotificationClass notificationClass) diff --git a/ENI2/DetailRootControl.xaml b/ENI2/DetailRootControl.xaml index 17abedfa..d5e5dffe 100644 --- a/ENI2/DetailRootControl.xaml +++ b/ENI2/DetailRootControl.xaml @@ -28,7 +28,7 @@ -