Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs =================================================================== diff -u -rf70611f9af51a6ffc8cb4d8d28d1ea806104937b -r60233a739e6b40a3182f53bb9ebd923703bd745c --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision f70611f9af51a6ffc8cb4d8d28d1ea806104937b) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision 60233a739e6b40a3182f53bb9ebd923703bd745c) @@ -40,7 +40,6 @@ using Ringtoets.Common.Forms.TreeNodeInfos; using Ringtoets.Common.Utils; using Ringtoets.HeightStructures.Data; -using Ringtoets.HeightStructures.Forms; using Ringtoets.HeightStructures.Forms.PresentationObjects; using Ringtoets.HeightStructures.Forms.PropertyClasses; using Ringtoets.HeightStructures.Forms.Views; @@ -474,13 +473,16 @@ if (dialog.SelectedItems.Any()) { - GenerateHeightStructuresCalculations(nodeData.FailureMechanism.SectionResults, dialog.SelectedItems, nodeData.WrappedData.Children); + GenerateHeightStructuresCalculations( + nodeData.FailureMechanism.SectionResults, + dialog.SelectedItems.Cast(), + nodeData.WrappedData.Children); nodeData.NotifyObservers(); } } } - private static void GenerateHeightStructuresCalculations(IEnumerable sectionResults, IEnumerable structures, IList calculations) + private static void GenerateHeightStructuresCalculations(IEnumerable sectionResults, IEnumerable structures, IList calculations) { foreach (var structure in structures) { @@ -489,7 +491,7 @@ Name = NamingHelper.GetUniqueName(calculations, structure.Name, c => c.Name), InputParameters = { - Structure = (HeightStructure) structure + Structure = structure } }; calculations.Add(calculation);