Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs =================================================================== diff -u -rd08c15413bbb6009c6da8ee05833a4c3531b358c -rc73100fd8408a2865d6fb32bd17608502686b605 --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision d08c15413bbb6009c6da8ee05833a4c3531b358c) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision c73100fd8408a2865d6fb32bd17608502686b605) @@ -108,21 +108,18 @@ /// Adds an item to the , which validates all calculations in a calculation group. /// /// The type of the calculation group context. - /// The calculation group to validate all calculations for. /// The calculation group context belonging to the calculation group. /// The action that validates all calculations. /// An optional function which determines whether the item should be enabled. If the /// item should not be enabled, then the reason for that should be returned by the function and will be shown as a tooltip. /// If the item should be enabled then the function should return a null or empty string. /// The itself. - public RingtoetsContextMenuBuilder AddValidateAllCalculationsInGroupItem( - CalculationGroup calculationGroup, - TCalculationContext calculationGroupContext, - Action validateAllAction, + public RingtoetsContextMenuBuilder AddValidateAllCalculationsInGroupItem(TCalculationContext calculationGroupContext, + Action validateAllAction, Func enableMenuItemFunction = null) where TCalculationContext : ICalculationContext { - contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateValidateAllCalculationsInGroupItem(calculationGroup, calculationGroupContext, validateAllAction, enableMenuItemFunction)); + contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateValidateAllCalculationsInGroupItem(calculationGroupContext, validateAllAction, enableMenuItemFunction)); return this; } @@ -153,20 +150,20 @@ /// /// Adds an item to the , which validates a calculation. /// - /// The type of the calculation. - /// The calculation to validate. + /// The type of the calculation context. + /// The context containing the calculation to validate. /// The action that validates the calculation. /// An optional function which determines whether the item should be enabled. If the /// item should not be enabled, then the reason for that should be returned by the function and will be shown as a tooltip. /// If the item should be enabled then the function should return a null or empty string. /// The itself. - public RingtoetsContextMenuBuilder AddValidateCalculationItem( - TCalculation calculation, - Action validateAction, - Func enableMenuItemFunction = null) - where TCalculation : ICalculation + public RingtoetsContextMenuBuilder AddValidateCalculationItem( + TCalculationContext calculationContext, + Action validateAction, + Func enableMenuItemFunction = null) + where TCalculationContext : ICalculationContext { - contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateValidateCalculationItem(calculation, validateAction, enableMenuItemFunction)); + contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateValidateCalculationItem(calculationContext, validateAction, enableMenuItemFunction)); return this; } @@ -216,19 +213,19 @@ /// /// Adds an item to the , which validates all calculations in a failure mechanism. /// - /// The type of the failure mechanism context. + /// The type of the failure mechanism context. /// The failure mechanism context belonging to the failure mechanism. /// The action that validates all calculations. /// An optional function which determines whether the item should be enabled. If the /// item should not be enabled, then the reason for that should be returned by the function and will be shown as a tooltip. /// If the item should be enabled then the function should return a null or empty string. /// The itself. /// When returns a string, the item will be disabled and the string will be shown in the tooltip. - public RingtoetsContextMenuBuilder AddValidateAllCalculationsInFailureMechanismItem( - TFailureMechanism failureMechanism, - Action validateAllAction, - Func enableMenuItemFunction = null) - where TFailureMechanism : IFailureMechanism + public RingtoetsContextMenuBuilder AddValidateAllCalculationsInFailureMechanismItem( + TFailureMechanismContext failureMechanism, + Action validateAllAction, + Func enableMenuItemFunction = null) + where TFailureMechanismContext : IFailureMechanismContext { contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateValidateAllCalculationsInFailureMechanismItem(failureMechanism, validateAllAction, enableMenuItemFunction)); return this;