From db67ef21fa02ace386cf9aa56affab7380dd60a3 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 26 Nov 2022 17:39:31 +0100 Subject: [PATCH] make system name and faction name bold --- EliteBGS/MainWindow.xaml | 5 ++++- EliteBGS/Objective.cs | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/EliteBGS/MainWindow.xaml b/EliteBGS/MainWindow.xaml index ea7327a..bf55bbf 100644 --- a/EliteBGS/MainWindow.xaml +++ b/EliteBGS/MainWindow.xaml @@ -60,7 +60,10 @@ - + + + + diff --git a/EliteBGS/Objective.cs b/EliteBGS/Objective.cs index 40fd53e..f3b2ca4 100644 --- a/EliteBGS/Objective.cs +++ b/EliteBGS/Objective.cs @@ -79,6 +79,14 @@ public class Objective : IComparable { get { return UITransactions.Select(x => x.Transaction).ToList(); } } + public Visibility HasSystem { + get { return string.IsNullOrEmpty(System) ? Visibility.Hidden : Visibility.Visible; } + } + + public Visibility HasFaction { + get { return string.IsNullOrEmpty(Faction) ? Visibility.Hidden : Visibility.Visible; } + } + public string Name { get { return this.ToString(); } }