ChartWindow: Enhance ComboCheckBox

This commit is contained in:
2024-01-20 02:57:22 +01:00
parent 8b0a4d7979
commit 47658a72ae
3 changed files with 18 additions and 26 deletions

View File

@ -73,7 +73,7 @@ namespace Elwig.Windows {
var data = EditBillingData.FromJson(PaymentVar.Data, attrVariants);
GraphEntries = [ ..data.GetPaymentGraphEntries(Context), ..data.GetQualityGraphEntries(Context)];
var contracts = ContractSelection.GetContractsForYear(Context, Year).DistinctBy(c => c.Listing).Order().ToList();
var contracts = ContractSelection.GetContractsForYear(Context, Year);
ControlUtils.RenewItemsSource(ContractInput, contracts, g => (g as ContractSelection)?.ToString());
ControlUtils.RenewItemsSource(GraphList, GraphEntries, g => (g as GraphEntry)?.Id, null, ControlUtils.RenewSourceDefault.First);