Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -rc1dacdcb866d2c12cacd5a9f7be63c2c344382b0 -r0c4b61d828b7118cd511f996cab4b7e13bd5bdbc --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision c1dacdcb866d2c12cacd5a9f7be63c2c344382b0) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 0c4b61d828b7118cd511f996cab4b7e13bd5bdbc) @@ -572,6 +572,14 @@ CloseForData = CloseAssemblyResultTotalViewForData, CreateInstance = context => new AssemblyResultTotalView(context.WrappedData) }; + + yield return new ViewInfo + { + GetViewName = (view, context) => Resources.AssemblyResultPerSection_DisplayName, + Image = Resources.AssemblyResultPerSection, + CloseForData = CloseAssemblyResultPerSectionViewForData, + CreateInstance = context => new AssemblyResultPerSectionView(context.WrappedData) + }; } public override IEnumerable GetImportInfos() @@ -1245,7 +1253,7 @@ #endregion - #region AssemblyTotalResultContext ViewInfo + #region AssemblyResultTotalContext ViewInfo private static bool CloseAssemblyResultTotalViewForData(AssemblyResultTotalView view, object o) { @@ -1255,8 +1263,18 @@ #endregion + #region AssemblyResultPerSectionContext ViewInfo + + private static bool CloseAssemblyResultPerSectionViewForData(AssemblyResultPerSectionView view, object o) + { + var assessmentSection = o as AssessmentSection; + return assessmentSection != null && assessmentSection == view.AssessmentSection; + } + #endregion + #endregion + #region TreeNodeInfos #region FailureMechanismSectionsContext TreeNodeInfo