From bfc7d5b4381497d2aabf9ea156185def22aefa68 Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Fri, 12 Jun 2015 13:14:24 +0200 Subject: [PATCH] Cosmetical changes,comments added into code in DataEntry.Standard24 --- .../DataEntry/Standard24/TestStartEndForm.cs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/TestBenchFramework/BenchControl/DataEntry/Standard24/TestStartEndForm.cs b/TestBenchFramework/BenchControl/DataEntry/Standard24/TestStartEndForm.cs index e7c906ccd..bb5e5d2ff 100644 --- a/TestBenchFramework/BenchControl/DataEntry/Standard24/TestStartEndForm.cs +++ b/TestBenchFramework/BenchControl/DataEntry/Standard24/TestStartEndForm.cs @@ -44,13 +44,14 @@ namespace TBF.BenchControl.DataEntry.Standard24 IList enabledTextBoxes; /// - /// Parameterless constructor iniitalizing common part + /// Parameterless constructor initializing common part for start and endstate form /// public TestStartEndForm() { InitializeComponent(); TextBoxesCount = 24; + labels = new Label[] { label1, label2, label3, label4, label5, label6, label7, label8, label9, label10, @@ -80,11 +81,13 @@ namespace TBF.BenchControl.DataEntry.Standard24 /// /// Constructor to fill in start states /// - /// Number of text boxes for serial numbers + /// Number of water meters + /// Information from CycleBeginningForm about availability of water meters public TestStartEndForm(int waterMetersCount, bool[] disabled) : this() { endStates = false; + this.WaterMetersCount = waterMetersCount; this.disabled = disabled; @@ -97,7 +100,12 @@ namespace TBF.BenchControl.DataEntry.Standard24 /// /// Constructor to fill in end states /// - /// Number of text boxes for serial numbers + /// Number of water meters + /// Information entered on test start + /// Information from CycleBeginningForm about availability of water meters + /// Reference volume, it is used to verify the end state, show/hide exclamation if necessary + /// Error limit low, it is used to verify the end state, show/hide exclamation if necessary + /// Error limit high, it is used to verify the end state, show/hide exclamation if necessary public TestStartEndForm(int waterMetersCount, string[] wmStartStateStr, bool[] disabled, float refVolume, float errLimLo, float errLimHi) : this() @@ -207,7 +215,7 @@ namespace TBF.BenchControl.DataEntry.Standard24 okButton.Text = Strings.OkBtnText; } - private void okButton_Click(object sender, EventArgs eA) + private void okButton_Click(object sender, EventArgs eArgs) { try { @@ -265,7 +273,7 @@ namespace TBF.BenchControl.DataEntry.Standard24 /// /// Calculate the approximate error and verify whether it is within limits. /// Make an exclamation mark visible if out of range. - /// Similar event handler is implemented for all exdTextBoxes (1..24). + /// Similar event handler is implemented for all endTextBoxes (1..24). /// private void endTextBox1_TextChanged(object sender, EventArgs e) {