Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs
===================================================================
diff -u -r6c712a75c513e2a17b6ddf3435b774815d802c5b -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision 6c712a75c513e2a17b6ddf3435b774815d802c5b)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -287,9 +287,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs
===================================================================
diff -u -re981a0ccbcc6ad8f5caf7aec024afff88e231b47 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs (.../FailureMechanismResultView.cs) (revision e981a0ccbcc6ad8f5caf7aec024afff88e231b47)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs (.../FailureMechanismResultView.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -43,7 +43,6 @@
where TSectionResultRow : FailureMechanismSectionResultRow
where TFailureMechanism : IFailureMechanism
{
- protected const int SimpleAssessmentColumnIndex = 1;
private readonly IObservableEnumerable failureMechanismSectionResults;
private readonly Observer failureMechanismObserver;
@@ -108,8 +107,9 @@
{
base.OnLoad(e);
AddDataGridColumns();
- BindEvents();
+ DataGridViewControl.CellFormatting += HandleCellStyling;
+
UpdateDataGridViewDataSource();
}
@@ -163,28 +163,10 @@
}
///
- /// Gets data that is visualized on the row a the given .
- ///
- /// The position of the row in the data source.
- /// The data bound to the row at index .
- protected TSectionResultRow GetDataAtRow(int rowIndex)
- {
- return (TSectionResultRow) DataGridViewControl.GetRowFromIndex(rowIndex).DataBoundItem;
- }
-
- ///
/// Adds the columns to the view.
///
protected abstract void AddDataGridColumns();
- ///
- /// Binds the events to the data grid view.
- ///
- protected virtual void BindEvents()
- {
- DataGridViewControl.CellFormatting += HandleCellStyling;
- }
-
private void RemoveSectionResultRowEvents()
{
sectionResultRows?.ForEachElementDo(row =>
@@ -207,7 +189,7 @@
private void HandleCellStyling(object sender, DataGridViewCellFormattingEventArgs e)
{
- TSectionResultRow row = GetDataAtRow(e.RowIndex);
+ var row = (TSectionResultRow) DataGridViewControl.GetRowFromIndex(e.RowIndex).DataBoundItem;
if (row.ColumnStateDefinitions.ContainsKey(e.ColumnIndex))
{
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionResultRow.cs
===================================================================
diff -u -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionResultRow.cs (.../FailureMechanismSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionResultRow.cs (.../FailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using Core.Common.Controls.DataGrid;
+using Ringtoets.AssemblyTool.Data;
using Ringtoets.Common.Data.FailureMechanism;
namespace Ringtoets.Common.Forms.Views
@@ -79,6 +80,8 @@
///
/// Updates all data and states for the row.
///
+ /// Thrown when
+ /// is a valid value, but unsupported.
public abstract void Update();
///
Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs
===================================================================
diff -u -r92c2041d1ffed9391e69c9a3b2c7adc93298b5d8 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs (.../DuneErosionSectionResultRow.cs) (revision 92c2041d1ffed9391e69c9a3b2c7adc93298b5d8)
+++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs (.../DuneErosionSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -302,9 +302,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs
===================================================================
diff -u -r4cc830a86077f55ff5ddf4d66e024e3170671296 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs) (revision 4cc830a86077f55ff5ddf4d66e024e3170671296)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -304,9 +304,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs
===================================================================
diff -u -r2177325fa31e8ced5f29d1ace13d37cc3adcef91 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs (.../HeightStructuresFailureMechanismSectionResultRow.cs) (revision 2177325fa31e8ced5f29d1ace13d37cc3adcef91)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs (.../HeightStructuresFailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -286,9 +286,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRow.cs
===================================================================
diff -u -r34635692bc7437564e0f99ae64cc49a7208d7fad -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRow.cs (.../GrassCoverSlipOffInwardsSectionResultRow.cs) (revision 34635692bc7437564e0f99ae64cc49a7208d7fad)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRow.cs (.../GrassCoverSlipOffInwardsSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -218,9 +218,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRow.cs
===================================================================
diff -u -rdf65c4224629f720ec95a3d4b296a3f80556b556 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRow.cs (.../GrassCoverSlipOffOutwardsSectionResultRow.cs) (revision df65c4224629f720ec95a3d4b296a3f80556b556)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRow.cs (.../GrassCoverSlipOffOutwardsSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -218,9 +218,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRow.cs
===================================================================
diff -u -rb5185d21d06eaa578010cf83a0087c4f9320025c -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRow.cs (.../MacroStabilityOutwardsSectionResultRow.cs) (revision b5185d21d06eaa578010cf83a0087c4f9320025c)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRow.cs (.../MacroStabilityOutwardsSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -287,9 +287,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MicrostabilitySectionResultRow.cs
===================================================================
diff -u -rb5185d21d06eaa578010cf83a0087c4f9320025c -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MicrostabilitySectionResultRow.cs (.../MicrostabilitySectionResultRow.cs) (revision b5185d21d06eaa578010cf83a0087c4f9320025c)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MicrostabilitySectionResultRow.cs (.../MicrostabilitySectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -219,9 +219,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/PipingStructureSectionResultRow.cs
===================================================================
diff -u -rf5da4dd6fa50a6e74e1861162028cc8692bbc562 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/PipingStructureSectionResultRow.cs (.../PipingStructureSectionResultRow.cs) (revision f5da4dd6fa50a6e74e1861162028cc8692bbc562)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/PipingStructureSectionResultRow.cs (.../PipingStructureSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -218,9 +218,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRow.cs
===================================================================
diff -u -r9b261d1aecde88dc1a0d996a274c040302cca40a -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRow.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRow.cs) (revision 9b261d1aecde88dc1a0d996a274c040302cca40a)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRow.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -185,9 +185,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/TechnicalInnovationSectionResultRow.cs
===================================================================
diff -u -ra3d3c8428638ea47a37811456d34bb4c59949664 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/TechnicalInnovationSectionResultRow.cs (.../TechnicalInnovationSectionResultRow.cs) (revision a3d3c8428638ea47a37811456d34bb4c59949664)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/TechnicalInnovationSectionResultRow.cs (.../TechnicalInnovationSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -184,9 +184,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRow.cs
===================================================================
diff -u -r8d1f30dda2764aa014653114a0800dd3e6deef99 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRow.cs (.../WaterPressureAsphaltCoverSectionResultRow.cs) (revision 8d1f30dda2764aa014653114a0800dd3e6deef99)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRow.cs (.../WaterPressureAsphaltCoverSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -184,9 +184,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismSectionResultRow.cs
===================================================================
diff -u -r74df3b2f37b578eb5f0d5c8d33379d965805bb8e -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismSectionResultRow.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRow.cs) (revision 74df3b2f37b578eb5f0d5c8d33379d965805bb8e)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismSectionResultRow.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -301,9 +301,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs
===================================================================
diff -u -r30887a6122283cc84b13770b8dad382ff3242612 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs (.../PipingFailureMechanismSectionResultRow.cs) (revision 30887a6122283cc84b13770b8dad382ff3242612)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs (.../PipingFailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -300,9 +300,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs
===================================================================
diff -u -r7446b85319f7e88ee602b7599b8aebd939bdd0ba -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs (.../StabilityPointStructuresFailureMechanismSectionResultRow.cs) (revision 7446b85319f7e88ee602b7599b8aebd939bdd0ba)
+++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs (.../StabilityPointStructuresFailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -289,9 +289,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs
===================================================================
diff -u -r8fdedd5a8e37e2fcfdad09a5ae5fc2a4b88bf5e5 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs (.../StabilityStoneCoverSectionResultRow.cs) (revision 8fdedd5a8e37e2fcfdad09a5ae5fc2a4b88bf5e5)
+++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs (.../StabilityStoneCoverSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -303,9 +303,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();
Index: Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs
===================================================================
diff -u -r8935a7d6161e7c87fc562dc958951f3740d11bd9 -r4994cf24768a7b54149e65713433dc4543ace82c
--- Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs) (revision 8935a7d6161e7c87fc562dc958951f3740d11bd9)
+++ Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs) (revision 4994cf24768a7b54149e65713433dc4543ace82c)
@@ -302,9 +302,6 @@
}
}
- ///
- /// Thrown when
- /// is a valid value, but unsupported.
public override void Update()
{
UpdateDerivedData();