From 4c402d81ab35462c0c8c8c93bbc8788c362da92b Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 25 May 2023 23:21:34 +0200 Subject: [PATCH] Update WineVarietyTemplate --- Elwig/App.xaml | 3 ++- Elwig/Models/WineVar.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Elwig/App.xaml b/Elwig/App.xaml index f758573..fb1d62a 100644 --- a/Elwig/App.xaml +++ b/Elwig/App.xaml @@ -40,7 +40,8 @@ - + + diff --git a/Elwig/Models/WineVar.cs b/Elwig/Models/WineVar.cs index 7293496..7f1ebc9 100644 --- a/Elwig/Models/WineVar.cs +++ b/Elwig/Models/WineVar.cs @@ -16,7 +16,7 @@ namespace Elwig.Models { [Column("comment")] public string? Comment { get; private set; } - public string NameWithComment => Name + ((Comment != null) ? $" ({Comment})" : ""); + public string CommentFormat => (Comment != null) ? $" ({Comment})" : ""; public override string ToString() { return Name;