PMaxTest and LeakTest methods implemented, added to the project
Order of two new test wizard dialog exchanged Pressure Selection wizard dialog added
This commit is contained in:
+30
-29
@@ -29,12 +29,12 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.horizSplitContainer = new System.Windows.Forms.SplitContainer();
|
||||
this.sensorsComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.sensorsLabel = new System.Windows.Forms.Label();
|
||||
this.qToTextBox = new System.Windows.Forms.TextBox();
|
||||
this.qFromTextBox = new System.Windows.Forms.TextBox();
|
||||
this.testNameTextBox = new System.Windows.Forms.TextBox();
|
||||
this.qToLabel = new System.Windows.Forms.Label();
|
||||
this.qFromLabel = new System.Windows.Forms.Label();
|
||||
this.testNameLabel = new System.Windows.Forms.Label();
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.nextButton = new System.Windows.Forms.Button();
|
||||
this.backButton = new System.Windows.Forms.Button();
|
||||
@@ -54,12 +54,12 @@
|
||||
//
|
||||
// horizSplitContainer.Panel1
|
||||
//
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.sensorsComboBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.sensorsLabel);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.qToTextBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.qFromTextBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.testNameTextBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.qToLabel);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.qFromLabel);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.testNameLabel);
|
||||
//
|
||||
// horizSplitContainer.Panel2
|
||||
//
|
||||
@@ -70,34 +70,44 @@
|
||||
this.horizSplitContainer.SplitterDistance = 182;
|
||||
this.horizSplitContainer.TabIndex = 1;
|
||||
//
|
||||
// sensorsComboBox
|
||||
//
|
||||
this.sensorsComboBox.FormattingEnabled = true;
|
||||
this.sensorsComboBox.Location = new System.Drawing.Point(137, 105);
|
||||
this.sensorsComboBox.Name = "sensorsComboBox";
|
||||
this.sensorsComboBox.Size = new System.Drawing.Size(124, 21);
|
||||
this.sensorsComboBox.TabIndex = 7;
|
||||
this.sensorsComboBox.SelectedIndexChanged += new System.EventHandler(this.anyTextBox_TextChanged);
|
||||
//
|
||||
// sensorsLabel
|
||||
//
|
||||
this.sensorsLabel.AutoSize = true;
|
||||
this.sensorsLabel.Location = new System.Drawing.Point(21, 108);
|
||||
this.sensorsLabel.Name = "sensorsLabel";
|
||||
this.sensorsLabel.Size = new System.Drawing.Size(45, 13);
|
||||
this.sensorsLabel.TabIndex = 6;
|
||||
this.sensorsLabel.Text = "Sensors";
|
||||
//
|
||||
// qToTextBox
|
||||
//
|
||||
this.qToTextBox.Location = new System.Drawing.Point(126, 86);
|
||||
this.qToTextBox.Location = new System.Drawing.Point(137, 74);
|
||||
this.qToTextBox.Name = "qToTextBox";
|
||||
this.qToTextBox.Size = new System.Drawing.Size(97, 20);
|
||||
this.qToTextBox.Size = new System.Drawing.Size(124, 20);
|
||||
this.qToTextBox.TabIndex = 5;
|
||||
this.qToTextBox.TextChanged += new System.EventHandler(this.anyTextBox_TextChanged);
|
||||
//
|
||||
// qFromTextBox
|
||||
//
|
||||
this.qFromTextBox.Location = new System.Drawing.Point(126, 56);
|
||||
this.qFromTextBox.Location = new System.Drawing.Point(137, 44);
|
||||
this.qFromTextBox.Name = "qFromTextBox";
|
||||
this.qFromTextBox.Size = new System.Drawing.Size(97, 20);
|
||||
this.qFromTextBox.Size = new System.Drawing.Size(124, 20);
|
||||
this.qFromTextBox.TabIndex = 4;
|
||||
this.qFromTextBox.TextChanged += new System.EventHandler(this.anyTextBox_TextChanged);
|
||||
//
|
||||
// testNameTextBox
|
||||
//
|
||||
this.testNameTextBox.Location = new System.Drawing.Point(126, 26);
|
||||
this.testNameTextBox.Name = "testNameTextBox";
|
||||
this.testNameTextBox.Size = new System.Drawing.Size(97, 20);
|
||||
this.testNameTextBox.TabIndex = 3;
|
||||
this.testNameTextBox.TextChanged += new System.EventHandler(this.anyTextBox_TextChanged);
|
||||
//
|
||||
// qToLabel
|
||||
//
|
||||
this.qToLabel.AutoSize = true;
|
||||
this.qToLabel.Location = new System.Drawing.Point(24, 89);
|
||||
this.qToLabel.Location = new System.Drawing.Point(21, 77);
|
||||
this.qToLabel.Name = "qToLabel";
|
||||
this.qToLabel.Size = new System.Drawing.Size(61, 13);
|
||||
this.qToLabel.TabIndex = 2;
|
||||
@@ -106,21 +116,12 @@
|
||||
// qFromLabel
|
||||
//
|
||||
this.qFromLabel.AutoSize = true;
|
||||
this.qFromLabel.Location = new System.Drawing.Point(24, 59);
|
||||
this.qFromLabel.Location = new System.Drawing.Point(21, 47);
|
||||
this.qFromLabel.Name = "qFromLabel";
|
||||
this.qFromLabel.Size = new System.Drawing.Size(72, 13);
|
||||
this.qFromLabel.TabIndex = 1;
|
||||
this.qFromLabel.Text = "Q from [m3/h]";
|
||||
//
|
||||
// testNameLabel
|
||||
//
|
||||
this.testNameLabel.AutoSize = true;
|
||||
this.testNameLabel.Location = new System.Drawing.Point(24, 29);
|
||||
this.testNameLabel.Name = "testNameLabel";
|
||||
this.testNameLabel.Size = new System.Drawing.Size(57, 13);
|
||||
this.testNameLabel.TabIndex = 0;
|
||||
this.testNameLabel.Text = "Test name";
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -183,10 +184,10 @@
|
||||
private System.Windows.Forms.Button backButton;
|
||||
private System.Windows.Forms.TextBox qToTextBox;
|
||||
private System.Windows.Forms.TextBox qFromTextBox;
|
||||
private System.Windows.Forms.TextBox testNameTextBox;
|
||||
private System.Windows.Forms.Label qToLabel;
|
||||
private System.Windows.Forms.Label qFromLabel;
|
||||
private System.Windows.Forms.Label testNameLabel;
|
||||
private System.Windows.Forms.ComboBox sensorsComboBox;
|
||||
private System.Windows.Forms.Label sensorsLabel;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -13,38 +13,44 @@ namespace TBF.TestWizard
|
||||
public partial class FlowSelection : Form
|
||||
{
|
||||
Entities.Test test;
|
||||
IList<Entities.MetersPath> sensorPaths;
|
||||
|
||||
public FlowSelection()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public FlowSelection(Entities.Test test)
|
||||
public FlowSelection(bool first, bool last,
|
||||
Entities.Test test,
|
||||
IList<Entities.MetersPath> sensorPaths)
|
||||
: this()
|
||||
{
|
||||
this.test = test;
|
||||
this.sensorPaths = sensorPaths;
|
||||
|
||||
Text = Strings.Flow_selection;
|
||||
qFromLabel.Text = Strings.Q_from_m3h;
|
||||
qToLabel.Text = Strings.Q_to_m3h;
|
||||
sensorsLabel.Text = Strings.Sensors;
|
||||
backButton.Text = Strings.BackBtnText;
|
||||
nextButton.Text = Strings.NextBtnText;
|
||||
cancelButton.Text = Strings.CancelBtnText;
|
||||
|
||||
if (first) backButton.Visible = false;
|
||||
if (last) nextButton.Text = Strings.FinishBtnText;
|
||||
}
|
||||
|
||||
private void FlowSelection_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (test == null) return;
|
||||
|
||||
backButton.Visible = false;
|
||||
|
||||
Text = Strings.Flow_selection;
|
||||
testNameLabel.Text = Strings.Test_name;
|
||||
qFromLabel.Text = Strings.Q_from_m3h;
|
||||
qToLabel.Text = Strings.Q_to_m3h;
|
||||
backButton.Text = Strings.BackBtnText;
|
||||
nextButton.Text = Strings.NextBtnText;
|
||||
cancelButton.Text = Strings.CancelBtnText;
|
||||
foreach (var path in sensorPaths) sensorsComboBox.Items.Add(path.Name);
|
||||
|
||||
RefreshWizardPage();
|
||||
}
|
||||
|
||||
void RefreshWizardPage()
|
||||
{
|
||||
testNameTextBox.Text = test.Name;
|
||||
qFromTextBox.Text = test.Qfrom.ToString();
|
||||
qToTextBox.Text = test.Qto.ToString();
|
||||
nextButton.Enabled = IsFormValid();
|
||||
@@ -52,16 +58,21 @@ namespace TBF.TestWizard
|
||||
|
||||
void UpdateTest()
|
||||
{
|
||||
test.Name = testNameTextBox.Text;
|
||||
test.Qfrom = Utils.ParseUFloat(qFromTextBox.Text);
|
||||
test.Qto = Utils.ParseUFloat(qToTextBox.Text);
|
||||
|
||||
if (sensorsComboBox.Items.Contains(sensorsComboBox.Text))
|
||||
{
|
||||
test.MetersPath = sensorsComboBox.Text;
|
||||
}
|
||||
}
|
||||
|
||||
bool IsFormValid()
|
||||
{
|
||||
float dummy;
|
||||
return Utils.TryParseUFloat(qFromTextBox.Text, out dummy) &&
|
||||
Utils.TryParseUFloat(qToTextBox.Text, out dummy);
|
||||
Utils.TryParseUFloat(qToTextBox.Text, out dummy) &&
|
||||
sensorsComboBox.Items.Contains(sensorsComboBox.Text);
|
||||
}
|
||||
|
||||
private void backButton_Click(object sender, EventArgs e)
|
||||
|
||||
+20
-22
@@ -29,8 +29,8 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.horizSplitContainer = new System.Windows.Forms.SplitContainer();
|
||||
this.sensorsComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.sensorsLabel = new System.Windows.Forms.Label();
|
||||
this.testNameTextBox = new System.Windows.Forms.TextBox();
|
||||
this.testNameLabel = new System.Windows.Forms.Label();
|
||||
this.testMethodComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.testMethodLabel = new System.Windows.Forms.Label();
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
@@ -52,8 +52,8 @@
|
||||
//
|
||||
// horizSplitContainer.Panel1
|
||||
//
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.sensorsComboBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.sensorsLabel);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.testNameTextBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.testNameLabel);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.testMethodComboBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.testMethodLabel);
|
||||
//
|
||||
@@ -66,28 +66,26 @@
|
||||
this.horizSplitContainer.SplitterDistance = 182;
|
||||
this.horizSplitContainer.TabIndex = 0;
|
||||
//
|
||||
// sensorsComboBox
|
||||
// testNameTextBox
|
||||
//
|
||||
this.sensorsComboBox.FormattingEnabled = true;
|
||||
this.sensorsComboBox.Location = new System.Drawing.Point(96, 84);
|
||||
this.sensorsComboBox.Name = "sensorsComboBox";
|
||||
this.sensorsComboBox.Size = new System.Drawing.Size(165, 21);
|
||||
this.sensorsComboBox.TabIndex = 3;
|
||||
this.sensorsComboBox.TextChanged += new System.EventHandler(this.sensorsComboBox_TextChanged);
|
||||
this.testNameTextBox.Location = new System.Drawing.Point(99, 47);
|
||||
this.testNameTextBox.Name = "testNameTextBox";
|
||||
this.testNameTextBox.Size = new System.Drawing.Size(165, 20);
|
||||
this.testNameTextBox.TabIndex = 5;
|
||||
//
|
||||
// sensorsLabel
|
||||
// testNameLabel
|
||||
//
|
||||
this.sensorsLabel.AutoSize = true;
|
||||
this.sensorsLabel.Location = new System.Drawing.Point(12, 87);
|
||||
this.sensorsLabel.Name = "sensorsLabel";
|
||||
this.sensorsLabel.Size = new System.Drawing.Size(45, 13);
|
||||
this.sensorsLabel.TabIndex = 2;
|
||||
this.sensorsLabel.Text = "Sensors";
|
||||
this.testNameLabel.AutoSize = true;
|
||||
this.testNameLabel.Location = new System.Drawing.Point(15, 50);
|
||||
this.testNameLabel.Name = "testNameLabel";
|
||||
this.testNameLabel.Size = new System.Drawing.Size(57, 13);
|
||||
this.testNameLabel.TabIndex = 4;
|
||||
this.testNameLabel.Text = "Test name";
|
||||
//
|
||||
// testMethodComboBox
|
||||
//
|
||||
this.testMethodComboBox.FormattingEnabled = true;
|
||||
this.testMethodComboBox.Location = new System.Drawing.Point(96, 48);
|
||||
this.testMethodComboBox.Location = new System.Drawing.Point(99, 96);
|
||||
this.testMethodComboBox.Name = "testMethodComboBox";
|
||||
this.testMethodComboBox.Size = new System.Drawing.Size(165, 21);
|
||||
this.testMethodComboBox.TabIndex = 1;
|
||||
@@ -96,7 +94,7 @@
|
||||
// testMethodLabel
|
||||
//
|
||||
this.testMethodLabel.AutoSize = true;
|
||||
this.testMethodLabel.Location = new System.Drawing.Point(12, 51);
|
||||
this.testMethodLabel.Location = new System.Drawing.Point(15, 99);
|
||||
this.testMethodLabel.Name = "testMethodLabel";
|
||||
this.testMethodLabel.Size = new System.Drawing.Size(66, 13);
|
||||
this.testMethodLabel.TabIndex = 0;
|
||||
@@ -164,7 +162,7 @@
|
||||
private System.Windows.Forms.Button backButton;
|
||||
private System.Windows.Forms.ComboBox testMethodComboBox;
|
||||
private System.Windows.Forms.Label testMethodLabel;
|
||||
private System.Windows.Forms.ComboBox sensorsComboBox;
|
||||
private System.Windows.Forms.Label sensorsLabel;
|
||||
private System.Windows.Forms.TextBox testNameTextBox;
|
||||
private System.Windows.Forms.Label testNameLabel;
|
||||
}
|
||||
}
|
||||
@@ -14,61 +14,59 @@ namespace TBF.TestWizard
|
||||
{
|
||||
Entities.Test test;
|
||||
IList<BenchControl.GenericDevices.ITestMethod> methods;
|
||||
IList<Entities.MetersPath> sensorPaths;
|
||||
|
||||
public MethodSelection()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public MethodSelection(Entities.Test test,
|
||||
IList<BenchControl.GenericDevices.ITestMethod> methods,
|
||||
IList<Entities.MetersPath> sensorPaths)
|
||||
public MethodSelection(bool first, bool last,
|
||||
Entities.Test test,
|
||||
IList<BenchControl.GenericDevices.ITestMethod> methods)
|
||||
: this()
|
||||
{
|
||||
this.test = test;
|
||||
this.methods = methods;
|
||||
this.sensorPaths = sensorPaths;
|
||||
|
||||
Text = Strings.Method_selection;
|
||||
testNameLabel.Text = Strings.Test_name;
|
||||
testMethodLabel.Text = Strings.Test_method;
|
||||
backButton.Text = Strings.BackBtnText;
|
||||
nextButton.Text = Strings.NextBtnText;
|
||||
cancelButton.Text = Strings.CancelBtnText;
|
||||
|
||||
if (first) backButton.Visible = false;
|
||||
if (last) nextButton.Text = Strings.FinishBtnText;
|
||||
}
|
||||
|
||||
private void MethodSelection_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (test == null) return;
|
||||
|
||||
Text = Strings.Method_selection;
|
||||
testMethodLabel.Text = Strings.Test_method;
|
||||
sensorsLabel.Text = Strings.Sensors;
|
||||
backButton.Text = Strings.BackBtnText;
|
||||
nextButton.Text = Strings.NextBtnText;
|
||||
cancelButton.Text = Strings.CancelBtnText;
|
||||
|
||||
foreach (var method in methods) testMethodComboBox.Items.Add(method.Cfg.Name);
|
||||
foreach (var path in sensorPaths) sensorsComboBox.Items.Add(path.Name);
|
||||
|
||||
RefreshWizardPage();
|
||||
}
|
||||
|
||||
void RefreshWizardPage()
|
||||
{
|
||||
testNameTextBox.Text = test.Name;
|
||||
nextButton.Enabled = IsFormValid();
|
||||
}
|
||||
|
||||
void UpdateTest()
|
||||
{
|
||||
test.Name = testNameTextBox.Text;
|
||||
|
||||
if (testMethodComboBox.Items.Contains(testMethodComboBox.Text))
|
||||
{
|
||||
test.Method = testMethodComboBox.Text;
|
||||
}
|
||||
if (sensorsComboBox.Items.Contains(sensorsComboBox.Text))
|
||||
{
|
||||
test.MetersPath = sensorsComboBox.Text;
|
||||
}
|
||||
}
|
||||
|
||||
bool IsFormValid()
|
||||
{
|
||||
return testMethodComboBox.Items.Contains(testMethodComboBox.Text) &&
|
||||
sensorsComboBox.Items.Contains(sensorsComboBox.Text);
|
||||
return testMethodComboBox.Items.Contains(testMethodComboBox.Text);
|
||||
}
|
||||
|
||||
private void backButton_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using TBF.Resources;
|
||||
|
||||
namespace TBF.TestWizard
|
||||
{
|
||||
public partial class PressureSelection : Form
|
||||
{
|
||||
Entities.Test test;
|
||||
|
||||
public PressureSelection()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public PressureSelection(bool first, bool last, Entities.Test test)
|
||||
: this()
|
||||
{
|
||||
this.test = test;
|
||||
|
||||
Text = Strings.Pressure_selection;
|
||||
pressureLoLabel.Text = Strings.Pressure_lo_bar;
|
||||
pressureHiLabel.Text = Strings.Pressure_hi_bar;
|
||||
durationLabel.Text = Strings.Duration_s;
|
||||
backButton.Text = Strings.BackBtnText;
|
||||
nextButton.Text = Strings.NextBtnText;
|
||||
cancelButton.Text = Strings.CancelBtnText;
|
||||
|
||||
if (first) backButton.Visible = false;
|
||||
if (last) nextButton.Text = Strings.FinishBtnText;
|
||||
}
|
||||
|
||||
private void FlowSelection_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (test == null) return;
|
||||
|
||||
RefreshWizardPage();
|
||||
}
|
||||
|
||||
void RefreshWizardPage()
|
||||
{
|
||||
pressureLoTextBox.Text = 1.0f.ToString(); /// TODO: replace constants
|
||||
pressureHiTextBox.Text = 2.0f.ToString();
|
||||
durationTextBox.Text = 10.ToString();
|
||||
nextButton.Enabled = IsFormValid();
|
||||
}
|
||||
|
||||
void UpdateTest()
|
||||
{
|
||||
/// TODO: complete
|
||||
//test.Qfrom = Utils.ParseUFloat(pressureLoTextBox.Text);
|
||||
//test.Qto = Utils.ParseUFloat(pressureHiTextBox.Text);
|
||||
//test.TstTime = int.Parse(durationTextBox.Text);
|
||||
}
|
||||
|
||||
bool IsFormValid()
|
||||
{
|
||||
float dummy;
|
||||
int iDummy;
|
||||
return Utils.TryParseUFloat(pressureLoTextBox.Text, out dummy) &&
|
||||
Utils.TryParseUFloat(pressureHiTextBox.Text, out dummy) &&
|
||||
int.TryParse(durationTextBox.Text, out iDummy);
|
||||
}
|
||||
|
||||
private void backButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Retry;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void nextButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (test != null && IsFormValid())
|
||||
{
|
||||
UpdateTest();
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
DialogResult = DialogResult.None;
|
||||
}
|
||||
}
|
||||
|
||||
private void cancelButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void anyTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
nextButton.Enabled = IsFormValid();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
namespace TBF.TestWizard
|
||||
{
|
||||
partial class PressureSelection
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.horizSplitContainer = new System.Windows.Forms.SplitContainer();
|
||||
this.durationTextBox = new System.Windows.Forms.TextBox();
|
||||
this.durationLabel = new System.Windows.Forms.Label();
|
||||
this.pressureHiTextBox = new System.Windows.Forms.TextBox();
|
||||
this.pressureLoTextBox = new System.Windows.Forms.TextBox();
|
||||
this.pressureHiLabel = new System.Windows.Forms.Label();
|
||||
this.pressureLoLabel = new System.Windows.Forms.Label();
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.nextButton = new System.Windows.Forms.Button();
|
||||
this.backButton = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.horizSplitContainer)).BeginInit();
|
||||
this.horizSplitContainer.Panel1.SuspendLayout();
|
||||
this.horizSplitContainer.Panel2.SuspendLayout();
|
||||
this.horizSplitContainer.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// horizSplitContainer
|
||||
//
|
||||
this.horizSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.horizSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.horizSplitContainer.Location = new System.Drawing.Point(0, 0);
|
||||
this.horizSplitContainer.Name = "horizSplitContainer";
|
||||
this.horizSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// horizSplitContainer.Panel1
|
||||
//
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.durationTextBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.durationLabel);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.pressureHiTextBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.pressureLoTextBox);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.pressureHiLabel);
|
||||
this.horizSplitContainer.Panel1.Controls.Add(this.pressureLoLabel);
|
||||
//
|
||||
// horizSplitContainer.Panel2
|
||||
//
|
||||
this.horizSplitContainer.Panel2.Controls.Add(this.cancelButton);
|
||||
this.horizSplitContainer.Panel2.Controls.Add(this.nextButton);
|
||||
this.horizSplitContainer.Panel2.Controls.Add(this.backButton);
|
||||
this.horizSplitContainer.Size = new System.Drawing.Size(284, 262);
|
||||
this.horizSplitContainer.SplitterDistance = 182;
|
||||
this.horizSplitContainer.TabIndex = 1;
|
||||
//
|
||||
// durationTextBox
|
||||
//
|
||||
this.durationTextBox.Location = new System.Drawing.Point(136, 103);
|
||||
this.durationTextBox.Name = "durationTextBox";
|
||||
this.durationTextBox.Size = new System.Drawing.Size(125, 20);
|
||||
this.durationTextBox.TabIndex = 7;
|
||||
//
|
||||
// durationLabel
|
||||
//
|
||||
this.durationLabel.AutoSize = true;
|
||||
this.durationLabel.Location = new System.Drawing.Point(21, 106);
|
||||
this.durationLabel.Name = "durationLabel";
|
||||
this.durationLabel.Size = new System.Drawing.Size(83, 13);
|
||||
this.durationLabel.TabIndex = 6;
|
||||
this.durationLabel.Text = "Test duration [s]";
|
||||
//
|
||||
// pressureHiTextBox
|
||||
//
|
||||
this.pressureHiTextBox.Location = new System.Drawing.Point(137, 74);
|
||||
this.pressureHiTextBox.Name = "pressureHiTextBox";
|
||||
this.pressureHiTextBox.Size = new System.Drawing.Size(124, 20);
|
||||
this.pressureHiTextBox.TabIndex = 5;
|
||||
this.pressureHiTextBox.TextChanged += new System.EventHandler(this.anyTextBox_TextChanged);
|
||||
//
|
||||
// pressureLoTextBox
|
||||
//
|
||||
this.pressureLoTextBox.Location = new System.Drawing.Point(137, 44);
|
||||
this.pressureLoTextBox.Name = "pressureLoTextBox";
|
||||
this.pressureLoTextBox.Size = new System.Drawing.Size(124, 20);
|
||||
this.pressureLoTextBox.TabIndex = 4;
|
||||
this.pressureLoTextBox.TextChanged += new System.EventHandler(this.anyTextBox_TextChanged);
|
||||
//
|
||||
// pressureHiLabel
|
||||
//
|
||||
this.pressureHiLabel.AutoSize = true;
|
||||
this.pressureHiLabel.Location = new System.Drawing.Point(21, 77);
|
||||
this.pressureHiLabel.Name = "pressureHiLabel";
|
||||
this.pressureHiLabel.Size = new System.Drawing.Size(85, 13);
|
||||
this.pressureHiLabel.TabIndex = 2;
|
||||
this.pressureHiLabel.Text = "Pressure Hi [bar]";
|
||||
//
|
||||
// pressureLoLabel
|
||||
//
|
||||
this.pressureLoLabel.AutoSize = true;
|
||||
this.pressureLoLabel.Location = new System.Drawing.Point(21, 47);
|
||||
this.pressureLoLabel.Name = "pressureLoLabel";
|
||||
this.pressureLoLabel.Size = new System.Drawing.Size(87, 13);
|
||||
this.pressureLoLabel.TabIndex = 1;
|
||||
this.pressureLoLabel.Text = "Pressure Lo [bar]";
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.cancelButton.Location = new System.Drawing.Point(186, 17);
|
||||
this.cancelButton.Name = "cancelButton";
|
||||
this.cancelButton.Size = new System.Drawing.Size(75, 42);
|
||||
this.cancelButton.TabIndex = 27;
|
||||
this.cancelButton.Text = "&Cancel";
|
||||
this.cancelButton.UseVisualStyleBackColor = true;
|
||||
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
|
||||
//
|
||||
// nextButton
|
||||
//
|
||||
this.nextButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.nextButton.Location = new System.Drawing.Point(105, 17);
|
||||
this.nextButton.Name = "nextButton";
|
||||
this.nextButton.Size = new System.Drawing.Size(75, 42);
|
||||
this.nextButton.TabIndex = 26;
|
||||
this.nextButton.Text = "&Next >";
|
||||
this.nextButton.UseVisualStyleBackColor = true;
|
||||
this.nextButton.Click += new System.EventHandler(this.nextButton_Click);
|
||||
//
|
||||
// backButton
|
||||
//
|
||||
this.backButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.backButton.DialogResult = System.Windows.Forms.DialogResult.Retry;
|
||||
this.backButton.Location = new System.Drawing.Point(24, 17);
|
||||
this.backButton.Name = "backButton";
|
||||
this.backButton.Size = new System.Drawing.Size(75, 42);
|
||||
this.backButton.TabIndex = 25;
|
||||
this.backButton.Text = "< &Back";
|
||||
this.backButton.UseVisualStyleBackColor = true;
|
||||
this.backButton.Click += new System.EventHandler(this.backButton_Click);
|
||||
//
|
||||
// PressureSelection
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(284, 262);
|
||||
this.Controls.Add(this.horizSplitContainer);
|
||||
this.Name = "PressureSelection";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "PressureSelection";
|
||||
this.Load += new System.EventHandler(this.FlowSelection_Load);
|
||||
this.horizSplitContainer.Panel1.ResumeLayout(false);
|
||||
this.horizSplitContainer.Panel1.PerformLayout();
|
||||
this.horizSplitContainer.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.horizSplitContainer)).EndInit();
|
||||
this.horizSplitContainer.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.SplitContainer horizSplitContainer;
|
||||
private System.Windows.Forms.Button cancelButton;
|
||||
private System.Windows.Forms.Button nextButton;
|
||||
private System.Windows.Forms.Button backButton;
|
||||
private System.Windows.Forms.TextBox pressureHiTextBox;
|
||||
private System.Windows.Forms.TextBox pressureLoTextBox;
|
||||
private System.Windows.Forms.Label pressureHiLabel;
|
||||
private System.Windows.Forms.Label pressureLoLabel;
|
||||
private System.Windows.Forms.TextBox durationTextBox;
|
||||
private System.Windows.Forms.Label durationLabel;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -19,15 +19,10 @@ namespace TBF.TestWizard
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public VolumeAndErrorSelection(Entities.Test test)
|
||||
public VolumeAndErrorSelection(bool first, bool last, Entities.Test test)
|
||||
: this()
|
||||
{
|
||||
this.test = test;
|
||||
}
|
||||
|
||||
private void VolumeAndErrorSelection_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (test == null) return;
|
||||
|
||||
Text = Strings.Volume_and_error_selection;
|
||||
volumeLabel.Text = Strings.Volume_ltr_chdr;
|
||||
@@ -38,6 +33,14 @@ namespace TBF.TestWizard
|
||||
nextButton.Text = Strings.FinishBtnText;
|
||||
cancelButton.Text = Strings.CancelBtnText;
|
||||
|
||||
if (first) backButton.Visible = false;
|
||||
if (last) nextButton.Text = Strings.FinishBtnText;
|
||||
}
|
||||
|
||||
private void VolumeAndErrorSelection_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (test == null) return;
|
||||
|
||||
RefreshWizardPage();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user