Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs
===================================================================
diff -u -r5bf6a765222c80d0d2b52cad46f0699dede3f2c2 -ra15e6824491a708be9c960aaa119b79a2ee3274d
--- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision 5bf6a765222c80d0d2b52cad46f0699dede3f2c2)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision a15e6824491a708be9c960aaa119b79a2ee3274d)
@@ -20,6 +20,7 @@
// All rights reserved.
using System;
+using System.Collections.Generic;
using System.Windows.Forms;
using Core.Common.Gui;
using Core.Common.Gui.ContextMenu;
@@ -272,6 +273,29 @@
return this;
}
+ ///
+ /// Adds an item to the , which is bound to the action
+ /// when updating the of the .
+ ///
+ /// The type of calculation input that has can have
+ /// a foreshore profile.
+ /// The calculations to update.
+ /// Object responsible for inquiring the required data.
+ /// The action to perform when the foreshore profile is updated.
+ /// The itself.
+ public RingtoetsContextMenuBuilder AddUpdateForeshoreProfileOfCalculationsItem(
+ IEnumerable> calculations,
+ IInquiryHelper inquiryHelper,
+ Action> updateAction)
+ where TCalculationInput : ICalculationInput, IHasForeshoreProfile
+ {
+ contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateUpdateForshoreProfileOfCalculationsItem(
+ calculations,
+ inquiryHelper,
+ updateAction));
+ return this;
+ }
+
#region Decorated members
///