ChartWindow: Load GraphEntries correctly from EditBillingData

This commit is contained in:
2024-01-20 01:53:27 +01:00
parent 75e9d756d2
commit 6a5676f916
3 changed files with 54 additions and 47 deletions

View File

@ -31,11 +31,12 @@ namespace Elwig.Helpers.Billing {
if (gebunden != null) GebundenGraph = new Graph(gebunden, minX, maxX);
}
public GraphEntry(int id, BillingData.Curve curve, int minX, int maxX) :
public GraphEntry(int id, BillingData.Curve curve, List<ContractSelection> contracts, int minX, int maxX) :
this(id, curve.Mode, minX, maxX) {
DataGraph = new Graph(curve.Normal, minX, maxX);
if (curve.Gebunden != null)
GebundenGraph = new Graph(curve.Gebunden, minX, maxX);
Contracts = contracts;
}
private GraphEntry(int id, BillingData.CurveMode mode, Graph dataGraph, Graph? gebundenGraph,