From 05da8eefac69c05981bc05d8c15402a908f5ecb0 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Wed, 4 Oct 2023 10:01:07 +0200 Subject: [PATCH] DeliveryAdminWindow: Add attribute list to DeliveryPartList --- Elwig/Models/DeliveryPart.cs | 3 +++ Elwig/Windows/DeliveryAdminWindow.xaml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Elwig/Models/DeliveryPart.cs b/Elwig/Models/DeliveryPart.cs index 759ec31..a288a3b 100644 --- a/Elwig/Models/DeliveryPart.cs +++ b/Elwig/Models/DeliveryPart.cs @@ -99,6 +99,9 @@ namespace Elwig.Models { [NotMapped] public IEnumerable Attributes => PartAttributes.Select(a => a.Attr); + [NotMapped] + public string AttributesString => string.Join("/", Attributes); + [InverseProperty("Part")] public virtual ISet PartModifiers { get; private set; } diff --git a/Elwig/Windows/DeliveryAdminWindow.xaml b/Elwig/Windows/DeliveryAdminWindow.xaml index baf22d5..f29cef8 100644 --- a/Elwig/Windows/DeliveryAdminWindow.xaml +++ b/Elwig/Windows/DeliveryAdminWindow.xaml @@ -401,7 +401,8 @@ - + +