Index: Riskeer/Common/src/Riskeer.Common.Forms/Views/HydraulicBoundaryCalculationsView.cs
===================================================================
diff -u -rbafb4d318466dac452919c07593591fb50f3ea60 -r34e4c2e5d4b673e604975119f441343a5ee95761
--- Riskeer/Common/src/Riskeer.Common.Forms/Views/HydraulicBoundaryCalculationsView.cs (.../HydraulicBoundaryCalculationsView.cs) (revision bafb4d318466dac452919c07593591fb50f3ea60)
+++ Riskeer/Common/src/Riskeer.Common.Forms/Views/HydraulicBoundaryCalculationsView.cs (.../HydraulicBoundaryCalculationsView.cs) (revision 34e4c2e5d4b673e604975119f441343a5ee95761)
@@ -37,7 +37,7 @@
/// Base view for views which should be derived in
/// order to get a consistent look and feel.
///
- public abstract partial class HydraulicBoundaryCalculationsView : LocationCalculationsView
+ public abstract partial class HydraulicBoundaryCalculationsView : LocationCalculationsView
{
private readonly Observer calculationsObserver;
private readonly RecursiveObserver, HydraulicBoundaryLocationCalculation> calculationObserver;
Index: Riskeer/Common/src/Riskeer.Common.Forms/Views/LocationCalculationsView.Designer.cs
===================================================================
diff -u -r87f2b64cb6bdc1be2f6596d14bf4945e0ed418ac -r34e4c2e5d4b673e604975119f441343a5ee95761
--- Riskeer/Common/src/Riskeer.Common.Forms/Views/LocationCalculationsView.Designer.cs (.../LocationCalculationsView.Designer.cs) (revision 87f2b64cb6bdc1be2f6596d14bf4945e0ed418ac)
+++ Riskeer/Common/src/Riskeer.Common.Forms/Views/LocationCalculationsView.Designer.cs (.../LocationCalculationsView.Designer.cs) (revision 34e4c2e5d4b673e604975119f441343a5ee95761)
@@ -23,7 +23,7 @@
namespace Riskeer.Common.Forms.Views
{
- partial class LocationCalculationsView
+ partial class LocationCalculationsView
{
///
/// Required designer variable.
Index: Riskeer/Common/src/Riskeer.Common.Forms/Views/LocationCalculationsView.cs
===================================================================
diff -u -rbafb4d318466dac452919c07593591fb50f3ea60 -r34e4c2e5d4b673e604975119f441343a5ee95761
--- Riskeer/Common/src/Riskeer.Common.Forms/Views/LocationCalculationsView.cs (.../LocationCalculationsView.cs) (revision bafb4d318466dac452919c07593591fb50f3ea60)
+++ Riskeer/Common/src/Riskeer.Common.Forms/Views/LocationCalculationsView.cs (.../LocationCalculationsView.cs) (revision 34e4c2e5d4b673e604975119f441343a5ee95761)
@@ -39,8 +39,7 @@
///
/// Base view for selecting and performing hydraulic boundary location calculations.
///
- /// The type of the calculation objects.
- public abstract partial class LocationCalculationsView : UserControl, ISelectionProvider, IView where T : class
+ public abstract partial class LocationCalculationsView : UserControl, ISelectionProvider, IView
{
private const int calculateColumnIndex = 0;
@@ -53,7 +52,7 @@
public event EventHandler SelectionChanged;
///
- /// Creates a new instance of .
+ /// Creates a new instance of .
///
protected LocationCalculationsView(IObservableEnumerable calculations,
IAssessmentSection assessmentSection)
@@ -87,9 +86,9 @@
}
///
- /// Gets or sets the .
+ /// Gets the .
///
- public IAssessmentSection AssessmentSection { get; protected set; }
+ public IAssessmentSection AssessmentSection { get; }
///
/// Gets or sets the .
@@ -131,7 +130,7 @@
///
protected virtual void InitializeDataGridView()
{
- dataGridViewControl.AddCheckBoxColumn(nameof(CalculatableRow.ShouldCalculate),
+ dataGridViewControl.AddCheckBoxColumn(nameof(HydraulicBoundaryLocationCalculationRow.ShouldCalculate),
Resources.CalculatableView_Calculate);
dataGridViewControl.AddCheckBoxColumn(nameof(HydraulicBoundaryLocationCalculationRow.IncludeIllustrationPoints),
Resources.HydraulicBoundaryLocationCalculationInput_IncludeIllustrationPoints_DisplayName);
@@ -173,20 +172,13 @@
.Select(row => (CalculatableRow) row.DataBoundItem);
}
- ///
- /// Gets all the selected calculatable objects.
- ///
private IEnumerable GetSelectedCalculatableObjects()
{
return GetCalculatableRows().Where(r => r.ShouldCalculate)
.Select(r => r.CalculatableObject);
}
-
- ///
- /// Handles the update of a hydraulic boundary location calculation by refreshing the data grid view
- /// and updating the data of the illustration points control.
- ///
- protected void HandleHydraulicBoundaryLocationCalculationUpdate()
+
+ private void HandleHydraulicBoundaryLocationCalculationUpdate()
{
suspendAllEvents = true;
dataGridViewControl.RefreshDataGridView();