Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/ChangeHandlers/RingtoetsPipingSurfaceLineChangeHandler.cs
===================================================================
diff -u -r03fae882dff9db344c9380368a85ecdf3ab46f2a -r7271c497cf19130a691b0b07abe99621957fda2e
--- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/ChangeHandlers/RingtoetsPipingSurfaceLineChangeHandler.cs (.../RingtoetsPipingSurfaceLineChangeHandler.cs) (revision 03fae882dff9db344c9380368a85ecdf3ab46f2a)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/ChangeHandlers/RingtoetsPipingSurfaceLineChangeHandler.cs (.../RingtoetsPipingSurfaceLineChangeHandler.cs) (revision 7271c497cf19130a691b0b07abe99621957fda2e)
@@ -25,7 +25,6 @@
using Core.Common.Gui;
using Ringtoets.Common.IO;
using Ringtoets.Piping.Data;
-using Ringtoets.Piping.Plugin.Properties;
namespace Ringtoets.Piping.Plugin.ChangeHandlers
{
@@ -37,24 +36,32 @@
{
private readonly IInquiryHelper inquiryHandler;
private readonly PipingFailureMechanism failureMechanism;
+ private readonly string query;
///
/// Creates a new instance of .
///
/// Failure mechanism for which to handle changes in stochastic soil models.
+ /// The query which should be displayed when inquiring for a confirmation.
/// Object responsible for inquiring required data.
/// Thrown when any input parameter is null.
- public RingtoetsPipingSurfaceLineChangeHandler(PipingFailureMechanism failureMechanism, IInquiryHelper inquiryHandler)
+ public RingtoetsPipingSurfaceLineChangeHandler(PipingFailureMechanism failureMechanism,
+ string query,
+ IInquiryHelper inquiryHandler)
{
if (failureMechanism == null)
{
throw new ArgumentNullException(nameof(failureMechanism));
}
+ if (query == null)
+ {
+ throw new ArgumentNullException(nameof(query));
+ }
if (inquiryHandler == null)
{
throw new ArgumentNullException(nameof(inquiryHandler));
}
-
+ this.query = query;
this.failureMechanism = failureMechanism;
this.inquiryHandler = inquiryHandler;
}
@@ -68,8 +75,7 @@
public bool InquireConfirmation()
{
- return inquiryHandler.InquireContinuation(
- Resources.RingtoetsPipingSurfaceLineChangeHandler_InquireConfirmation_When_updating_RingtoetsSurfaceLines_definitions_assigned_to_calculations_output_will_be_cleared_confirm);
+ return inquiryHandler.InquireContinuation(query);
}
private static bool HasOutput(PipingCalculation calculation)