ChartWindow: Load GraphEntries correctly from EditBillingData
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user