Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Ringtoets.Integration.Plugin.csproj
===================================================================
diff -u -r3ab49f7b140be394314a3a329c6c4ed079d0aadf -ra57fa7943b448178d966241987678c2f0b28c32e
--- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Ringtoets.Integration.Plugin.csproj (.../Ringtoets.Integration.Plugin.csproj) (revision 3ab49f7b140be394314a3a329c6c4ed079d0aadf)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Ringtoets.Integration.Plugin.csproj (.../Ringtoets.Integration.Plugin.csproj) (revision a57fa7943b448178d966241987678c2f0b28c32e)
@@ -77,11 +77,6 @@
Core.Components.Gis
False
-
- {420ED9C3-0C33-47EA-B893-121A9C0DB4F1}
- Ringtoets.AssemblyTool.Data
- False
-
{C6309704-D67B-434C-BC98-9F8910BC1D10}
Ringtoets.ClosingStructures.Data
@@ -117,6 +112,11 @@
Ringtoets.DuneErosion.Plugin
False
+
+ {888D4097-8BC2-4703-9FB1-8744C94D525E}
+ Ringtoets.HydraRing.Calculation
+ False
+
{83D6B73E-91D5-46B0-9218-955DA1F75F7C}
Ringtoets.MacroStabilityInwards.Data
Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs
===================================================================
diff -u -r53f9e83ff9ccf6ec7f9fcf5e9d01d0bcb97a5af8 -ra57fa7943b448178d966241987678c2f0b28c32e
--- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 53f9e83ff9ccf6ec7f9fcf5e9d01d0bcb97a5af8)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision a57fa7943b448178d966241987678c2f0b28c32e)
@@ -51,6 +51,7 @@
using Ringtoets.Common.Forms.ChangeHandlers;
using Ringtoets.Common.Forms.Controls;
using Ringtoets.Common.Forms.GuiServices;
+using Ringtoets.Common.Forms.Helpers;
using Ringtoets.Common.Forms.PresentationObjects;
using Ringtoets.Common.Forms.PropertyClasses;
using Ringtoets.Common.Forms.TreeNodeInfos;
@@ -1940,15 +1941,117 @@
private ContextMenuStrip DesignWaterLevelCalculationsGroupContextMenuStrip(DesignWaterLevelCalculationsGroupContext nodeData, object parentData, TreeViewControl treeViewControl)
{
+ IAssessmentSection assessmentSection = nodeData.AssessmentSection;
+
+ var designWaterLevelItem = new StrictContextMenuItem(
+ RingtoetsFormsResources.DesignWaterLevel_Calculate_All,
+ RingtoetsFormsResources.DesignWaterLevel_Calculate_All_ToolTip,
+ RingtoetsCommonFormsResources.CalculateAllIcon,
+ (sender, args) =>
+ {
+ if (hydraulicBoundaryLocationCalculationGuiService == null)
+ {
+ return;
+ }
+
+ string hydraulicBoundaryDatabaseFilePath = assessmentSection.HydraulicBoundaryDatabase.FilePath;
+ string preprocessorDirectory = assessmentSection.HydraulicBoundaryDatabase.EffectivePreprocessorDirectory();
+ var calculations = new List();
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateDesignWaterLevelCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaterLevelCalculationsForFactorizedSignalingNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.FactorizedSignalingNorm),
+ new DesignWaterLevelCalculationMessageProvider(Resources.Hydraulic_category_boundary_factorizedSignalingNorm_name)));
+
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateDesignWaterLevelCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaterLevelCalculationsForSignalingNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.SignalingNorm),
+ new DesignWaterLevelCalculationMessageProvider(Resources.Hydraulic_category_boundary_signalingNorm_name)));
+
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateDesignWaterLevelCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaterLevelCalculationsForLowerLimitNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.LowerLimitNorm),
+ new DesignWaterLevelCalculationMessageProvider(Resources.Hydraulic_category_boundary_lowerLimitNorm_name)));
+
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateDesignWaterLevelCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaterLevelCalculationsForFactorizedLowerLimitNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.FactorizedLowerLimitNorm),
+ new DesignWaterLevelCalculationMessageProvider(Resources.Hydraulic_category_boundary_factorizedLowerLimitNorm_name)));
+
+ hydraulicBoundaryLocationCalculationGuiService.RunActivities(hydraulicBoundaryDatabaseFilePath, preprocessorDirectory, calculations);
+ });
+
+ SetHydraulicsMenuItemEnabledStateAndTooltip(assessmentSection, designWaterLevelItem);
+
return Gui.Get(nodeData, treeViewControl)
+ .AddCustomItem(designWaterLevelItem)
+ .AddSeparator()
.AddCollapseAllItem()
.AddExpandAllItem()
.Build();
}
private ContextMenuStrip WaveHeightCalculationsGroupContextMenuStrip(WaveHeightCalculationsGroupContext nodeData, object parentData, TreeViewControl treeViewControl)
{
+ IAssessmentSection assessmentSection = nodeData.AssessmentSection;
+
+ var waveHeightItem = new StrictContextMenuItem(
+ RingtoetsFormsResources.WaveHeight_Calculate_All,
+ RingtoetsFormsResources.WaveHeight_Calculate_All_ToolTip,
+ RingtoetsCommonFormsResources.CalculateAllIcon,
+ (sender, args) =>
+ {
+ if (hydraulicBoundaryLocationCalculationGuiService == null)
+ {
+ return;
+ }
+
+ string hydraulicBoundaryDatabaseFilePath = assessmentSection.HydraulicBoundaryDatabase.FilePath;
+ string preprocessorDirectory = assessmentSection.HydraulicBoundaryDatabase.EffectivePreprocessorDirectory();
+ var calculations = new List();
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateWaveHeightCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaveHeightCalculationsForFactorizedSignalingNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.FactorizedSignalingNorm),
+ new WaveHeightCalculationMessageProvider(Resources.Hydraulic_category_boundary_factorizedSignalingNorm_name)));
+
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateWaveHeightCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaveHeightCalculationsForSignalingNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.SignalingNorm),
+ new WaveHeightCalculationMessageProvider(Resources.Hydraulic_category_boundary_signalingNorm_name)));
+
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateWaveHeightCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaveHeightCalculationsForLowerLimitNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.LowerLimitNorm),
+ new WaveHeightCalculationMessageProvider(Resources.Hydraulic_category_boundary_lowerLimitNorm_name)));
+
+ calculations.AddRange(HydraulicBoundaryCalculationActivityHelper.CreateWaveHeightCalculationActivities(
+ hydraulicBoundaryDatabaseFilePath,
+ preprocessorDirectory,
+ assessmentSection.WaveHeightCalculationsForFactorizedLowerLimitNorm,
+ assessmentSection.GetNorm(AssessmentSectionCategoryType.FactorizedLowerLimitNorm),
+ new WaveHeightCalculationMessageProvider(Resources.Hydraulic_category_boundary_factorizedLowerLimitNorm_name)));
+
+ hydraulicBoundaryLocationCalculationGuiService.RunActivities(hydraulicBoundaryDatabaseFilePath, preprocessorDirectory, calculations);
+ });
+
+ SetHydraulicsMenuItemEnabledStateAndTooltip(assessmentSection, waveHeightItem);
+
return Gui.Get(nodeData, treeViewControl)
+ .AddCustomItem(waveHeightItem)
+ .AddSeparator()
.AddCollapseAllItem()
.AddExpandAllItem()
.Build();