Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs
===================================================================
diff -u -r3fb9abfa805e982990945675c30d93658fd6e912 -r7b59ab6aaa9f81445151848d8b3aa651062ee6b7
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 3fb9abfa805e982990945675c30d93658fd6e912)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 7b59ab6aaa9f81445151848d8b3aa651062ee6b7)
@@ -677,11 +677,12 @@
}
///
- /// Looks up a localized string similar to Er zijn geen profielschematisaties beschikbaar om berekeningen voor te genereren..
+ /// Looks up a localized string similar to Er zijn geen profielschematisaties of stochastische ondergrondmodellen beschikbaar om berekeningen voor te genereren..
///
- public static string PipingCalculationGroup_Generate_PipingCalculations_NoSurfaceLines_ToolTip {
+ public static string PipingCalculationGroup_Generate_PipingCalculations_NoSurfaceLinesOrSoilModels_ToolTip {
get {
- return ResourceManager.GetString("PipingCalculationGroup_Generate_PipingCalculations_NoSurfaceLines_ToolTip", resourceCulture);
+ return ResourceManager.GetString("PipingCalculationGroup_Generate_PipingCalculations_NoSurfaceLinesOrSoilModels_Too" +
+ "lTip", resourceCulture);
}
}
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx
===================================================================
diff -u -r3fb9abfa805e982990945675c30d93658fd6e912 -r7b59ab6aaa9f81445151848d8b3aa651062ee6b7
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx (.../Resources.resx) (revision 3fb9abfa805e982990945675c30d93658fd6e912)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx (.../Resources.resx) (revision 7b59ab6aaa9f81445151848d8b3aa651062ee6b7)
@@ -736,7 +736,7 @@
Toetslaag 3
-
- Er zijn geen profielschematisaties beschikbaar om berekeningen voor te genereren.
+
+ Er zijn geen profielschematisaties of stochastische ondergrondmodellen beschikbaar om berekeningen voor te genereren.
\ No newline at end of file
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.Designer.cs
===================================================================
diff -u -r375428303ce2602d07cef6b01b4aaf9eaf1f4722 -r7b59ab6aaa9f81445151848d8b3aa651062ee6b7
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.Designer.cs (.../PipingCalculationsView.Designer.cs) (revision 375428303ce2602d07cef6b01b4aaf9eaf1f4722)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.Designer.cs (.../PipingCalculationsView.Designer.cs) (revision 7b59ab6aaa9f81445151848d8b3aa651062ee6b7)
@@ -15,6 +15,7 @@
///
private void InitializeComponent()
{
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PipingCalculationsView));
this.tableLayoutPanelUserControl = new System.Windows.Forms.TableLayoutPanel();
this.splitContainer = new System.Windows.Forms.SplitContainer();
this.tableLayoutPanelListBox = new System.Windows.Forms.TableLayoutPanel();
@@ -24,7 +25,7 @@
this.labelCalculations = new System.Windows.Forms.Label();
this.dataGridView = new System.Windows.Forms.DataGridView();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
- this.buttonCreateCalculations = new System.Windows.Forms.Button();
+ this.buttonGenerateScenarios = new System.Windows.Forms.Button();
this.buttonNavigateToSelectedCalculation = new System.Windows.Forms.Button();
this.tableLayoutPanelUserControl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
@@ -39,98 +40,54 @@
//
// tableLayoutPanelUserControl
//
- this.tableLayoutPanelUserControl.ColumnCount = 1;
- this.tableLayoutPanelUserControl.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ resources.ApplyResources(this.tableLayoutPanelUserControl, "tableLayoutPanelUserControl");
this.tableLayoutPanelUserControl.Controls.Add(this.splitContainer, 0, 0);
this.tableLayoutPanelUserControl.Controls.Add(this.tableLayoutPanel1, 0, 1);
- this.tableLayoutPanelUserControl.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanelUserControl.Location = new System.Drawing.Point(0, 0);
- this.tableLayoutPanelUserControl.MinimumSize = new System.Drawing.Size(500, 300);
this.tableLayoutPanelUserControl.Name = "tableLayoutPanelUserControl";
- this.tableLayoutPanelUserControl.RowCount = 2;
- this.tableLayoutPanelUserControl.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.tableLayoutPanelUserControl.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 32F));
- this.tableLayoutPanelUserControl.Size = new System.Drawing.Size(762, 560);
- this.tableLayoutPanelUserControl.TabIndex = 0;
//
// splitContainer
//
- this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
- this.splitContainer.Location = new System.Drawing.Point(3, 3);
+ resources.ApplyResources(this.splitContainer, "splitContainer");
this.splitContainer.Name = "splitContainer";
//
// splitContainer.Panel1
//
this.splitContainer.Panel1.Controls.Add(this.tableLayoutPanelListBox);
- this.splitContainer.Panel1MinSize = 200;
//
// splitContainer.Panel2
//
this.splitContainer.Panel2.Controls.Add(this.tableLayoutPanelDataGrid);
- this.splitContainer.Panel2MinSize = 300;
- this.splitContainer.Size = new System.Drawing.Size(756, 522);
- this.splitContainer.SplitterDistance = 209;
- this.splitContainer.TabIndex = 0;
this.splitContainer.TabStop = false;
//
// tableLayoutPanelListBox
//
- this.tableLayoutPanelListBox.ColumnCount = 1;
- this.tableLayoutPanelListBox.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ resources.ApplyResources(this.tableLayoutPanelListBox, "tableLayoutPanelListBox");
this.tableLayoutPanelListBox.Controls.Add(this.listBox, 0, 1);
this.tableLayoutPanelListBox.Controls.Add(this.labelFailureMechanismSections, 0, 0);
- this.tableLayoutPanelListBox.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanelListBox.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanelListBox.Name = "tableLayoutPanelListBox";
- this.tableLayoutPanelListBox.RowCount = 2;
- this.tableLayoutPanelListBox.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanelListBox.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.tableLayoutPanelListBox.Size = new System.Drawing.Size(209, 522);
- this.tableLayoutPanelListBox.TabIndex = 0;
//
// listBox
//
- this.listBox.Dock = System.Windows.Forms.DockStyle.Fill;
+ resources.ApplyResources(this.listBox, "listBox");
this.listBox.FormattingEnabled = true;
- this.listBox.IntegralHeight = false;
- this.listBox.Location = new System.Drawing.Point(3, 20);
- this.listBox.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0);
this.listBox.Name = "listBox";
- this.listBox.Size = new System.Drawing.Size(203, 502);
- this.listBox.TabIndex = 1;
//
// labelFailureMechanismSections
//
- this.labelFailureMechanismSections.AutoSize = true;
- this.labelFailureMechanismSections.Location = new System.Drawing.Point(3, 0);
+ resources.ApplyResources(this.labelFailureMechanismSections, "labelFailureMechanismSections");
this.labelFailureMechanismSections.Name = "labelFailureMechanismSections";
- this.labelFailureMechanismSections.Size = new System.Drawing.Size(44, 13);
- this.labelFailureMechanismSections.TabIndex = 0;
- this.labelFailureMechanismSections.Text = "Vakken";
//
// tableLayoutPanelDataGrid
//
- this.tableLayoutPanelDataGrid.ColumnCount = 1;
- this.tableLayoutPanelDataGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ resources.ApplyResources(this.tableLayoutPanelDataGrid, "tableLayoutPanelDataGrid");
this.tableLayoutPanelDataGrid.Controls.Add(this.labelCalculations, 0, 0);
this.tableLayoutPanelDataGrid.Controls.Add(this.dataGridView, 0, 1);
- this.tableLayoutPanelDataGrid.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanelDataGrid.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanelDataGrid.Name = "tableLayoutPanelDataGrid";
- this.tableLayoutPanelDataGrid.RowCount = 2;
- this.tableLayoutPanelDataGrid.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanelDataGrid.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.tableLayoutPanelDataGrid.Size = new System.Drawing.Size(543, 522);
- this.tableLayoutPanelDataGrid.TabIndex = 1;
//
// labelCalculations
//
- this.labelCalculations.AutoSize = true;
- this.labelCalculations.Location = new System.Drawing.Point(3, 0);
+ resources.ApplyResources(this.labelCalculations, "labelCalculations");
this.labelCalculations.Name = "labelCalculations";
- this.labelCalculations.Size = new System.Drawing.Size(182, 13);
- this.labelCalculations.TabIndex = 0;
- this.labelCalculations.Text = "Berekeningen voor geselecteerd vak";
//
// dataGridView
//
@@ -140,61 +97,37 @@
this.dataGridView.AllowUserToResizeRows = false;
this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader;
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
+ resources.ApplyResources(this.dataGridView, "dataGridView");
this.dataGridView.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
- this.dataGridView.Location = new System.Drawing.Point(3, 20);
- this.dataGridView.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0);
this.dataGridView.Name = "dataGridView";
this.dataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- this.dataGridView.Size = new System.Drawing.Size(537, 502);
- this.dataGridView.TabIndex = 1;
//
// tableLayoutPanel1
//
- this.tableLayoutPanel1.ColumnCount = 2;
- this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Controls.Add(this.buttonCreateCalculations, 0, 0);
+ resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
+ this.tableLayoutPanel1.Controls.Add(this.buttonGenerateScenarios, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.buttonNavigateToSelectedCalculation, 1, 0);
- this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 531);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
- this.tableLayoutPanel1.RowCount = 1;
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Size = new System.Drawing.Size(756, 26);
- this.tableLayoutPanel1.TabIndex = 1;
//
- // buttonCreateCalculations
+ // buttonGenerateScenarios
//
- this.buttonCreateCalculations.Dock = System.Windows.Forms.DockStyle.Left;
- this.buttonCreateCalculations.Enabled = false;
- this.buttonCreateCalculations.Location = new System.Drawing.Point(3, 3);
- this.buttonCreateCalculations.Name = "buttonCreateCalculations";
- this.buttonCreateCalculations.Size = new System.Drawing.Size(137, 20);
- this.buttonCreateCalculations.TabIndex = 0;
- this.buttonCreateCalculations.Text = "Berekeningen aanmaken";
- this.buttonCreateCalculations.UseVisualStyleBackColor = true;
+ resources.ApplyResources(this.buttonGenerateScenarios, "buttonGenerateScenarios");
+ this.buttonGenerateScenarios.Name = "buttonGenerateScenarios";
+ this.buttonGenerateScenarios.UseVisualStyleBackColor = true;
+ this.buttonGenerateScenarios.Click += new System.EventHandler(this.OnGenerateScenariosButtonClick);
//
// buttonNavigateToSelectedCalculation
//
- this.buttonNavigateToSelectedCalculation.Dock = System.Windows.Forms.DockStyle.Right;
- this.buttonNavigateToSelectedCalculation.Enabled = false;
- this.buttonNavigateToSelectedCalculation.Location = new System.Drawing.Point(572, 3);
+ resources.ApplyResources(this.buttonNavigateToSelectedCalculation, "buttonNavigateToSelectedCalculation");
this.buttonNavigateToSelectedCalculation.Name = "buttonNavigateToSelectedCalculation";
- this.buttonNavigateToSelectedCalculation.Size = new System.Drawing.Size(181, 20);
- this.buttonNavigateToSelectedCalculation.TabIndex = 1;
- this.buttonNavigateToSelectedCalculation.Text = "Ga naar geselecteerde berekening";
this.buttonNavigateToSelectedCalculation.UseVisualStyleBackColor = true;
//
// PipingCalculationsView
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
- this.AutoScrollMinSize = new System.Drawing.Size(600, 400);
this.Controls.Add(this.tableLayoutPanelUserControl);
this.Name = "PipingCalculationsView";
- this.Size = new System.Drawing.Size(762, 560);
this.tableLayoutPanelUserControl.ResumeLayout(false);
this.splitContainer.Panel1.ResumeLayout(false);
this.splitContainer.Panel2.ResumeLayout(false);
@@ -221,7 +154,7 @@
private System.Windows.Forms.Label labelCalculations;
private System.Windows.Forms.DataGridView dataGridView;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
- private System.Windows.Forms.Button buttonCreateCalculations;
+ private System.Windows.Forms.Button buttonGenerateScenarios;
private System.Windows.Forms.Button buttonNavigateToSelectedCalculation;
}
}
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.cs
===================================================================
diff -u -r43fb77c51a8d1c0af128a2da0c3d51bbea6e25bb -r7b59ab6aaa9f81445151848d8b3aa651062ee6b7
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.cs (.../PipingCalculationsView.cs) (revision 43fb77c51a8d1c0af128a2da0c3d51bbea6e25bb)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.cs (.../PipingCalculationsView.cs) (revision 7b59ab6aaa9f81445151848d8b3aa651062ee6b7)
@@ -65,8 +65,8 @@
InitializeDataGridView();
InitializeListBox();
- pipingSoilProfilesObserver = new Observer(UpdateSoilProfileColumn);
- pipingFailureMechanismObserver = new Observer(UpdateDikeSectionsListBox);
+ pipingSoilProfilesObserver = new Observer(OnSoilProfilesUpdate);
+ pipingFailureMechanismObserver = new Observer(OnPipingFailureMechanismUpdate);
assessmentSectionObserver = new Observer(UpdateHydraulicBoundaryLocationsColumn);
pipingInputObserver = new RecursiveObserver(UpdateDataGridViewDataSource, pcg => pcg.Children.Concat