Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r53bfde12ab449eba06567e6ff64627faec1d8026 -rfb3cd6ea3148ac270b92a764bf7a0965785ddb1c --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 53bfde12ab449eba06567e6ff64627faec1d8026) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision fb3cd6ea3148ac270b92a764bf7a0965785ddb1c) @@ -712,7 +712,8 @@ yield return new TreeNodeInfo { Text = context => RingtoetsFormsResources.DesignWaterLevelLocationsContext_DisplayName, - Image = context => RingtoetsCommonFormsResources.GeneralFolderIcon + Image = context => RingtoetsCommonFormsResources.GeneralFolderIcon, + ChildNodeObjects = DesignWaterLevelLocationsGroupContextChildNodeObjects }; yield return new TreeNodeInfo @@ -725,7 +726,8 @@ yield return new TreeNodeInfo { Text = context => RingtoetsFormsResources.WaveHeightLocationsContext_DisplayName, - Image = context => RingtoetsCommonFormsResources.GeneralFolderIcon + Image = context => RingtoetsCommonFormsResources.GeneralFolderIcon, + ChildNodeObjects = WaveHeightLocationsGroupContextChildNodeObjects }; yield return new TreeNodeInfo @@ -1866,6 +1868,28 @@ log.Info(RingtoetsFormsResources.Calculations_Cleared); } + private static object[] DesignWaterLevelLocationsGroupContextChildNodeObjects(DesignWaterLevelLocationsGroupContext context) + { + return new object[] + { + new DesignWaterLevelLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.DesignWaterLevelCalculation1), + new DesignWaterLevelLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.DesignWaterLevelCalculation2), + new DesignWaterLevelLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.DesignWaterLevelCalculation3), + new DesignWaterLevelLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.DesignWaterLevelCalculation4) + }; + } + + private static object[] WaveHeightLocationsGroupContextChildNodeObjects(WaveHeightLocationsGroupContext context) + { + return new object[] + { + new WaveHeightLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.WaveHeightCalculation1), + new WaveHeightLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.WaveHeightCalculation2), + new WaveHeightLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.WaveHeightCalculation3), + new WaveHeightLocationsContext(context.WrappedData, context.AssessmentSection, hbl => hbl.WaveHeightCalculation4) + }; + } + #endregion #endregion