ChartWindow: Minor bugfixes and polishing

This commit is contained in:
2024-01-20 12:01:41 +01:00
parent 47658a72ae
commit 491c41b239
3 changed files with 15 additions and 12 deletions

View File

@ -9,6 +9,7 @@ namespace Elwig.Helpers.Billing {
public WineVar? Variety { get; }
public WineAttr? Attribute { get; }
public string Listing => $"{Variety?.SortId}{Attribute?.AttrId}";
public string FullName => $"{Variety?.Name}" + (Variety != null && Attribute != null ? " " : "") + $"{Attribute?.Name}";
public ContractSelection(WineVar? var, WineAttr? attr) {
Variety = var;

View File

@ -12,7 +12,7 @@ namespace Elwig.Helpers.Billing {
public decimal? GebundenFlatBonus { get; set; }
public List<ContractSelection> Contracts { get; set; }
public string ContractsStringSimple => Contracts.Any() ? string.Join(", ", Contracts.Select(c => c.Listing)) : "-";
public string ContractsString => Contracts.Any() ? string.Join("\n", Contracts.Select(c => c.ToString())) : "-";
public string ContractsString => Contracts.Any() ? string.Join("\n", Contracts.Select(c => c.FullName)) : "-";
private int MinX { get; set; }
private int MaxX { get; set; }