From f5d473574e78e813356f370d9d1e817940ba75bf Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 25 Aug 2025 16:35:09 +0200 Subject: [PATCH] minor adjustments --- ENI2/Excel/ExcelUtil.cs | 4 ++-- ENI2/SheetDisplayControls/PortControl.xaml | 24 ++++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/ENI2/Excel/ExcelUtil.cs b/ENI2/Excel/ExcelUtil.cs index 27390a99..c40bf8be 100644 --- a/ENI2/Excel/ExcelUtil.cs +++ b/ENI2/Excel/ExcelUtil.cs @@ -1421,10 +1421,10 @@ namespace ENI2.Excel int i = 1; foreach (LastTenPortFacilitiesCalled ltpfc in sec.LastTenPortFacilitesCalled) { - if (!(mdh.GetSublistElementWithIdentifier((i + 1).ToString()) is PortOfCallLast30Days poc30d)) + if (!(mdh.GetSublistElementWithIdentifier((i).ToString()) is PortOfCallLast30Days poc30d)) { poc30d = new PortOfCallLast30Days(); - poc30d.Identifier = (i + 1).ToString(); + poc30d.Identifier = (i).ToString(); poc30d.MDH = mdh; mdh.PortOfCallLast30Days.Add(poc30d); } diff --git a/ENI2/SheetDisplayControls/PortControl.xaml b/ENI2/SheetDisplayControls/PortControl.xaml index 5c675422..d5101c92 100644 --- a/ENI2/SheetDisplayControls/PortControl.xaml +++ b/ENI2/SheetDisplayControls/PortControl.xaml @@ -95,7 +95,7 @@ - + @@ -133,14 +133,11 @@ - + - + + @@ -150,18 +147,23 @@ - - + + - -