From 378e5681243d05fb051ed59804adfdd91a0e1a47 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Fri, 19 Apr 2024 16:07:00 +0200 Subject: [PATCH] pimped up the optics of a shipcall cell (a bit) --- src/BreCalClient/BreCalLists.cs | 12 ++++++++---- src/BreCalClient/ShipcallControl.xaml | 14 ++++++++++---- src/BreCalClient/ShipcallControl.xaml.cs | 11 +++++++++++ 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/src/BreCalClient/BreCalLists.cs b/src/BreCalClient/BreCalLists.cs index 81b0369..4fe6b2f 100644 --- a/src/BreCalClient/BreCalLists.cs +++ b/src/BreCalClient/BreCalLists.cs @@ -1,6 +1,6 @@ // Copyright (c) 2023 schick Informatik // Description: Static lists used everywhere -// +// using BreCalClient.misc.Model; using System.Collections.Concurrent; @@ -30,9 +30,13 @@ namespace BreCalClient private readonly static ConcurrentDictionary _berthLookupDict = new(); private readonly static Dictionary _participantLookupDict = new(); + /// + /// List of TimeRef points + /// + // TODO: To make this portable the list of texts should come from a configuration file private readonly static List _timeRefs = new List { - "Liegeplatz", + "ETB", "Geeste", "TN-Weser" }; @@ -113,7 +117,7 @@ namespace BreCalClient aList.Clear(); mList.Clear(); pList.Clear(); - tList.Clear(); + tList.Clear(); terList.Clear(); foreach (Participant p in participants) @@ -147,7 +151,7 @@ namespace BreCalClient if (!ship.Deleted) _ships.Add(sm); _allShips.Add(sm); - } + } } #endregion diff --git a/src/BreCalClient/ShipcallControl.xaml b/src/BreCalClient/ShipcallControl.xaml index 39db78b..e189db6 100644 --- a/src/BreCalClient/ShipcallControl.xaml +++ b/src/BreCalClient/ShipcallControl.xaml @@ -122,11 +122,15 @@