From dbd7347ac92a648edb9cb595ee8885f6f3fbecf3 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Tue, 13 May 2025 11:48:29 +0200 Subject: [PATCH] Moved draft up and put unit behind the value --- .../Resources/Resources.Designer.cs | 18 ++++++++++ src/BreCalClient/Resources/Resources.de.resx | 3 ++ src/BreCalClient/Resources/Resources.resx | 6 ++++ src/BreCalClient/ShipcallControl.xaml | 33 +++++++++---------- src/BreCalClient/ShipcallControl.xaml.cs | 2 +- 5 files changed, 44 insertions(+), 18 deletions(-) diff --git a/src/BreCalClient/Resources/Resources.Designer.cs b/src/BreCalClient/Resources/Resources.Designer.cs index 7be1ee9..a0aa882 100644 --- a/src/BreCalClient/Resources/Resources.Designer.cs +++ b/src/BreCalClient/Resources/Resources.Designer.cs @@ -624,6 +624,15 @@ namespace BreCalClient.Resources { } } + /// + /// Looks up a localized string similar to Draft. + /// + public static string textDraftNoUnit { + get { + return ResourceManager.GetString("textDraftNoUnit", resourceCulture); + } + } + /// /// Looks up a localized string similar to Edit. /// @@ -1146,6 +1155,15 @@ namespace BreCalClient.Resources { } } + /// + /// Looks up a localized string similar to Position. + /// + public static string textPosition { + get { + return ResourceManager.GetString("textPosition", resourceCulture); + } + } + /// /// Looks up a localized string similar to Rain sensitive cargo. /// diff --git a/src/BreCalClient/Resources/Resources.de.resx b/src/BreCalClient/Resources/Resources.de.resx index 5c2755a..242e671 100644 --- a/src/BreCalClient/Resources/Resources.de.resx +++ b/src/BreCalClient/Resources/Resources.de.resx @@ -235,6 +235,9 @@ Tiefgang (m) + + Tiefgang + Bearbeiten diff --git a/src/BreCalClient/Resources/Resources.resx b/src/BreCalClient/Resources/Resources.resx index 0c2a7dd..6c9cdeb 100644 --- a/src/BreCalClient/Resources/Resources.resx +++ b/src/BreCalClient/Resources/Resources.resx @@ -649,4 +649,10 @@ Notify on + + Position + + + Draft + \ No newline at end of file diff --git a/src/BreCalClient/ShipcallControl.xaml b/src/BreCalClient/ShipcallControl.xaml index 1f1b0e2..3dc9001 100644 --- a/src/BreCalClient/ShipcallControl.xaml +++ b/src/BreCalClient/ShipcallControl.xaml @@ -69,27 +69,26 @@ - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/src/BreCalClient/ShipcallControl.xaml.cs b/src/BreCalClient/ShipcallControl.xaml.cs index 4cf3262..ee5b780 100644 --- a/src/BreCalClient/ShipcallControl.xaml.cs +++ b/src/BreCalClient/ShipcallControl.xaml.cs @@ -269,7 +269,7 @@ namespace BreCalClient this.imageEvaluation.ToolTip = null; this.textBlockBerth.Text = this.ShipcallControlModel?.GetBerthText(null); - this.textBlockDraft.Text = (this.ShipcallControlModel?.Shipcall?.Draft != null) ? this.ShipcallControlModel?.Shipcall?.Draft.Value.ToString("N1") : "-"; + this.textBlockDraft.Text = (this.ShipcallControlModel?.Shipcall?.Draft != null) ? $"{this.ShipcallControlModel?.Shipcall?.Draft.Value.ToString("N1")} m" : "-"; this.textBlockETA.Text = this.ShipcallControlModel?.GetETAETD(true); this.textBlockIMO.Text = this.ShipcallControlModel?.Ship?.Imo.ToString();