From d36d625681a08d0e11675071e76d42574be9b2cf Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 26 May 2022 06:58:29 +0200 Subject: [PATCH] added TrimStringConverter to avoid adding whitespace-only text --- ...aritimeHealthDeclarationDetailControl.xaml | 167 +++---- .../OverViewDetailControl.xaml | 412 +++++++++--------- .../PSC72hDetailControl.xaml | 70 +-- .../PortCallDetailControl.xaml | 20 +- .../PortNotificationDetailControl.xaml | 160 +++---- .../SecurityDetailControl.xaml | 202 ++++----- .../ShipDataDetailControl.xaml | 111 ++--- .../WasteDetailControl.xaml | 2 +- ENI2/ENI2.csproj | 5 +- ENI2/Excel/DakosyUtil.cs | 3 +- ENI2/Util/TrimStringConverter.cs | 41 ++ 11 files changed, 619 insertions(+), 574 deletions(-) create mode 100644 ENI2/Util/TrimStringConverter.cs diff --git a/ENI2/DetailViewControls/MaritimeHealthDeclarationDetailControl.xaml b/ENI2/DetailViewControls/MaritimeHealthDeclarationDetailControl.xaml index 4057015d..0aca1249 100644 --- a/ENI2/DetailViewControls/MaritimeHealthDeclarationDetailControl.xaml +++ b/ENI2/DetailViewControls/MaritimeHealthDeclarationDetailControl.xaml @@ -7,6 +7,7 @@ xmlns:local="clr-namespace:ENI2.DetailViewControls" xmlns:enictrl="clr-namespace:ENI2.Controls" xmlns:p="clr-namespace:ENI2.Properties" + xmlns:util="clr-namespace:ENI2.Util" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="1024"> @@ -14,80 +15,80 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -105,26 +106,26 @@ - - - - + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/ENI2/DetailViewControls/OverViewDetailControl.xaml b/ENI2/DetailViewControls/OverViewDetailControl.xaml index eb097996..bb384509 100644 --- a/ENI2/DetailViewControls/OverViewDetailControl.xaml +++ b/ENI2/DetailViewControls/OverViewDetailControl.xaml @@ -11,7 +11,7 @@ xmlns:local="clr-namespace:ENI2.DetailViewControls" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="800"> - + - - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ENI2/DetailViewControls/PSC72hDetailControl.xaml b/ENI2/DetailViewControls/PSC72hDetailControl.xaml index 309cca1c..04a35a22 100644 --- a/ENI2/DetailViewControls/PSC72hDetailControl.xaml +++ b/ENI2/DetailViewControls/PSC72hDetailControl.xaml @@ -13,48 +13,48 @@ d:DesignHeight="800" d:DesignWidth="1024"> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + diff --git a/ENI2/DetailViewControls/PortCallDetailControl.xaml b/ENI2/DetailViewControls/PortCallDetailControl.xaml index cead6e4e..12abc521 100644 --- a/ENI2/DetailViewControls/PortCallDetailControl.xaml +++ b/ENI2/DetailViewControls/PortCallDetailControl.xaml @@ -98,16 +98,16 @@ @@ -162,18 +162,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/ENI2/DetailViewControls/ShipDataDetailControl.xaml b/ENI2/DetailViewControls/ShipDataDetailControl.xaml index dc6db395..38af2e76 100644 --- a/ENI2/DetailViewControls/ShipDataDetailControl.xaml +++ b/ENI2/DetailViewControls/ShipDataDetailControl.xaml @@ -5,6 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:enictrl="clr-namespace:ENI2.Controls" + xmlns:util="clr-namespace:ENI2.Util" xmlns:p="clr-namespace:ENI2.Properties" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:local="clr-namespace:ENI2.DetailViewControls" @@ -12,63 +13,63 @@ d:DesignHeight="600" d:DesignWidth="800"> - - - - - - + - - - - - - - - + + - - - - - - - - + + + + + + + + + + + + + + + + + + + - + @@ -93,12 +94,12 @@ diff --git a/ENI2/DetailViewControls/WasteDetailControl.xaml b/ENI2/DetailViewControls/WasteDetailControl.xaml index bd8cbb7a..6e1b9950 100644 --- a/ENI2/DetailViewControls/WasteDetailControl.xaml +++ b/ENI2/DetailViewControls/WasteDetailControl.xaml @@ -53,7 +53,7 @@ - +