From c27685df6ebccffcf91ac0735824bb494eb6871a Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 28 Apr 2025 15:43:31 +0200 Subject: [PATCH] Draft instead of callsign in BSMD cell --- src/BreCalClient/ShipcallControl.xaml | 25 ++++++++++++------------ src/BreCalClient/ShipcallControl.xaml.cs | 8 ++++---- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/BreCalClient/ShipcallControl.xaml b/src/BreCalClient/ShipcallControl.xaml index 5557643..1f1b0e2 100644 --- a/src/BreCalClient/ShipcallControl.xaml +++ b/src/BreCalClient/ShipcallControl.xaml @@ -29,7 +29,6 @@ - @@ -64,32 +63,32 @@ - - - - - - - + - + - + - + - + - + + + + + + + diff --git a/src/BreCalClient/ShipcallControl.xaml.cs b/src/BreCalClient/ShipcallControl.xaml.cs index 1ff0158..4cf3262 100644 --- a/src/BreCalClient/ShipcallControl.xaml.cs +++ b/src/BreCalClient/ShipcallControl.xaml.cs @@ -267,10 +267,10 @@ namespace BreCalClient this.imageEvaluation.ToolTip = this.ShipcallControlModel?.Shipcall?.EvaluationMessage; else this.imageEvaluation.ToolTip = null; - - this.textBlockBerth.Text = this.ShipcallControlModel?.GetBerthText(null); - this.textBlockCallsign.Text = this.ShipcallControlModel?.Ship?.Callsign; - this.textBlockETA.Text = this.ShipcallControlModel?.GetETAETD(true); + + this.textBlockBerth.Text = this.ShipcallControlModel?.GetBerthText(null); + this.textBlockDraft.Text = (this.ShipcallControlModel?.Shipcall?.Draft != null) ? this.ShipcallControlModel?.Shipcall?.Draft.Value.ToString("N1") : "-"; + this.textBlockETA.Text = this.ShipcallControlModel?.GetETAETD(true); this.textBlockIMO.Text = this.ShipcallControlModel?.Ship?.Imo.ToString(); this.textBlockLengthWidth.Text = $"{this.ShipcallControlModel?.Ship?.Length} / {this.ShipcallControlModel?.Ship?.Width}";