Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/CalculationTreeNodeInfoFactory.cs =================================================================== diff -u -r79279d5d69482de69ef6b4be98ad53e666ab06e2 -rba310454172ed29499474b2f8b013fa0f0c523b8 --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/CalculationTreeNodeInfoFactory.cs (.../CalculationTreeNodeInfoFactory.cs) (revision 79279d5d69482de69ef6b4be98ad53e666ab06e2) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/CalculationTreeNodeInfoFactory.cs (.../CalculationTreeNodeInfoFactory.cs) (revision ba310454172ed29499474b2f8b013fa0f0c523b8) @@ -223,13 +223,16 @@ /// /// The builder to add the context menu item to. /// The calculation group involved. + /// The calculation group context belonging to the calculation group. /// The action that performs all calculations. - public static void AddPerformAllCalculationsInGroupItem(IContextMenuBuilder builder, CalculationGroup calculationGroup, Action calculateAll) + public static void AddPerformAllCalculationsInGroupItem + (IContextMenuBuilder builder, CalculationGroup calculationGroup, TCalculationGroupContext context, Action calculateAll) + where TCalculationGroupContext : ICalculationContext { var performAllItem = new StrictContextMenuItem( Resources.Calculate_all, Resources.CalculationGroup_CalculateAll_ToolTip, - Resources.CalculateAllIcon, (o, args) => { calculateAll(calculationGroup); }); + Resources.CalculateAllIcon, (o, args) => { calculateAll(calculationGroup, context); }); if (!calculationGroup.GetCalculations().Any()) { @@ -245,12 +248,10 @@ /// /// The builder to add the context menu item to. /// The calculation involved. + /// The calculation context belonging to the calculation. /// The action that performs the calculation. public static void AddPerformCalculationItem( - IContextMenuBuilder builder, - TCalculation calculation, - TCalculationContext context, - Action calculate) + IContextMenuBuilder builder, TCalculation calculation, TCalculationContext context, Action calculate) where TCalculation : ICalculation where TCalculationContext : ICalculationContext { var calculateItem = new StrictContextMenuItem(