ChartWindow: Minor bugfixes and polishing
This commit is contained in:
@ -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;
|
||||
|
@ -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; }
|
||||
|
||||
|
Reference in New Issue
Block a user