Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingPlugin.cs =================================================================== diff -u -r673bf2f4f4de6006444aae3a10183f9442eb0f23 -r89d34600d1408c8b1f4240020e841ba64cc26622 --- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingPlugin.cs (.../PipingPlugin.cs) (revision 673bf2f4f4de6006444aae3a10183f9442eb0f23) +++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingPlugin.cs (.../PipingPlugin.cs) (revision 89d34600d1408c8b1f4240020e841ba64cc26622) @@ -497,7 +497,9 @@ return (nodeData, parentData, treeViewControl) => Gui.Get(nodeData, treeViewControl) .AddImportItem() .AddCustomItem( - CreateUpdateStochasticSoilModelsItem(nodeData.WrappedData)) + CreateUpdateStochasticSoilModelsItem( + nodeData.WrappedData, + nodeData.FailureMechanism)) .AddSeparator() .AddDeleteChildrenItem() .AddSeparator() @@ -506,22 +508,22 @@ .Build(); } - private StrictContextMenuItem CreateUpdateStochasticSoilModelsItem(StochasticSoilModelCollection nodeDataWrappedData) + private StrictContextMenuItem CreateUpdateStochasticSoilModelsItem(StochasticSoilModelCollection soilModelCollection, PipingFailureMechanism failureMechanism) { return new StrictContextMenuItem( "&Bijwerken...", "Werk de reeds bekende lijst van stochastische ondergrondmodellen bij.", PipingPluginResources.RefreshIcon, (sender, args) => { - var importer = new StochasticSoilModelImporter(nodeDataWrappedData, - nodeDataWrappedData.SourcePath, - new StochasticSoilModelUpdateData()); + var importer = new StochasticSoilModelImporter(soilModelCollection, + soilModelCollection.SourcePath, + new StochasticSoilModelUpdateData(failureMechanism)); var activity = new FileImportActivity(importer, "Bijwerken van stochastische ondergrondmodellen."); ActivityProgressDialogRunner.Run(Gui.MainWindow, activity); }) { - Enabled = nodeDataWrappedData.SourcePath != null + Enabled = soilModelCollection.SourcePath != null }; }