ChartWindow: Load GraphEntries correctly from EditBillingData

This commit is contained in:
lorenz.stechauner committed 2024-01-20 01:53:27 +01:00
1 parent 75e9d756d2
commit 6a5676f916
3 files changed
+54 -47

No files matched your search

+2 -1
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,