Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs =================================================================== diff -u -rcf2dc4330cecec3b8c8acae9e195280323fc2a50 -r776558d53b8a73cf16bdd5b50ff4d1eeff933b2f --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision cf2dc4330cecec3b8c8acae9e195280323fc2a50) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision 776558d53b8a73cf16bdd5b50ff4d1eeff933b2f) @@ -21,6 +21,7 @@ using System; using System.Windows.Forms; +using Core.Common.Gui.Commands; using Core.Common.Gui.ContextMenu; using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.FailureMechanism; @@ -252,10 +253,11 @@ /// . /// /// The calculation group from which all the children will be removed. + /// The object implementing a method for closing views for the removed children. /// The itself. - public RingtoetsContextMenuBuilder AddRemoveAllChildrenItem(CalculationGroup calculationGroup) + public RingtoetsContextMenuBuilder AddRemoveAllChildrenItem(CalculationGroup calculationGroup, IViewCommands viewCommands) { - contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateRemoveAllChildrenFromGroupItem(calculationGroup)); + contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateRemoveAllChildrenFromGroupItem(calculationGroup, viewCommands)); return this; }