Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r664249ef211b7f6abdcb44e6e01260a673b9a57b -raf799c0543365c3fce39a12d2662403b61611a0b --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 664249ef211b7f6abdcb44e6e01260a673b9a57b) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision af799c0543365c3fce39a12d2662403b61611a0b) @@ -1,4 +1,4 @@ -// Copyright (C) Stichting Deltares 2018. All rights reserved. +// Copyright (C) Stichting Deltares 2018. All rights reserved. // // This file is part of Ringtoets. // @@ -710,6 +710,13 @@ CreateInstance = context => new AssemblyResultCategoriesView(context.WrappedData, context.GetAssemblyCategoriesFunc) }; + yield return new ViewInfo + { + GetViewName = (view, context) => RingtoetsFormsResources.AssemblyResultPerSectionMapView_DisplayName, + Image = Resources.AssemblyResultPerSectionMap, + CloseForData = CloseAssemblyResultPerSectionMapViewForData, + CreateInstance = context => new AssemblyResultPerSectionMapView(context.WrappedData) + }; } public override IEnumerable GetImportInfos() @@ -1555,8 +1562,18 @@ #endregion + #region AssemblyResultPerSectionMapContext ViewInfo + + private static bool CloseAssemblyResultPerSectionMapViewForData(AssemblyResultPerSectionMapView view, object o) + { + var assessmentSection = o as AssessmentSection; + return assessmentSection != null && assessmentSection == view.AssessmentSection; + } + #endregion + #endregion + #region TreeNodeInfos #region FailureMechanismSectionsContext TreeNodeInfo