Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingPlugin.cs =================================================================== diff -u -r7271c497cf19130a691b0b07abe99621957fda2e -rd3ebf1b56b406bc99fdf54a9920fdfa9f7632ca7 --- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingPlugin.cs (.../PipingPlugin.cs) (revision 7271c497cf19130a691b0b07abe99621957fda2e) +++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingPlugin.cs (.../PipingPlugin.cs) (revision d3ebf1b56b406bc99fdf54a9920fdfa9f7632ca7) @@ -117,7 +117,7 @@ FileFilterGenerator = StochasticSoilModelFileFilter, IsEnabled = StochasticSoilModelImporterEnabled, CreateFileImporter = (context, filePath) => StochasticSoilModelImporter(context, filePath, new StochasticSoilModelReplaceDataStrategy(context.FailureMechanism)), - VerifyUpdates = VerifyStochasticSoilModelUpdates + VerifyUpdates = context => VerifyStochasticSoilModelUpdates(context, Resources.PipingPlugin_VerifyStochasticSoilModelImport_When_importing_StochasticSoilModels_calculation_output_will_be_cleared_confirm) }; yield return new ImportInfo @@ -167,7 +167,7 @@ IsEnabled = StochasticSoilModelImporterEnabled, CurrentPath = context => context.WrappedData.SourcePath, CreateFileImporter = (context, filePath) => StochasticSoilModelImporter(context, filePath, new StochasticSoilModelUpdateDataStrategy(context.FailureMechanism)), - VerifyUpdates = VerifyStochasticSoilModelUpdates + VerifyUpdates = context => VerifyStochasticSoilModelUpdates(context, Resources.PipingPlugin_VerifyStochasticSoilModelUpdates_When_updating_StochasticSoilModel_definitions_assigned_to_calculation_output_will_be_cleared_confirm) }; } @@ -381,9 +381,9 @@ return context.AssessmentSection.ReferenceLine != null; } - private bool VerifyStochasticSoilModelUpdates(StochasticSoilModelCollectionContext context) + private bool VerifyStochasticSoilModelUpdates(StochasticSoilModelCollectionContext context, string query) { - var changeHandler = new StochasticSoilModelChangeHandler(context.FailureMechanism, new DialogBasedInquiryHelper(Gui.MainWindow)); + var changeHandler = new StochasticSoilModelChangeHandler(context.FailureMechanism, query, new DialogBasedInquiryHelper(Gui.MainWindow)); return !changeHandler.RequireConfirmation() || changeHandler.InquireConfirmation(); }