Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/CalculationTreeNodeInfoFactory.cs =================================================================== diff -u -r2c8727ab981f791b6324428b063c414c45a607a3 -r7343a55e81349863d0e5d7bec5c7f0b3577adf65 --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/CalculationTreeNodeInfoFactory.cs (.../CalculationTreeNodeInfoFactory.cs) (revision 2c8727ab981f791b6324428b063c414c45a607a3) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/CalculationTreeNodeInfoFactory.cs (.../CalculationTreeNodeInfoFactory.cs) (revision 7343a55e81349863d0e5d7bec5c7f0b3577adf65) @@ -80,16 +80,20 @@ /// Creates a object for a calculation context of the type . /// /// The icon of the . + /// The function for obtaining the child node objects. /// The type of calculation context to create a object for. /// A object. - public static TreeNodeInfo CreateCalculationContextTreeNodeInfo(Bitmap icon) + public static TreeNodeInfo CreateCalculationContextTreeNodeInfo( + Bitmap icon, + Func childeNodeObjects) where TCalculationContext : ICalculationContext { return new TreeNodeInfo { Text = context => context.WrappedData.Name, Image = context => icon, - EnsureVisibleOnCreate = (context, parent) => true + EnsureVisibleOnCreate = (context, parent) => true, + ChildNodeObjects = childeNodeObjects }; }