DataEntry.Standard12 and DataEntry.Standard48 added, TODO: complete Standard48.
This commit is contained in:
+446
@@ -0,0 +1,446 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
partial class CycleBeginningForm
|
||||||
|
{
|
||||||
|
/// <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()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CycleBeginningForm));
|
||||||
|
this.okButton = new System.Windows.Forms.Button();
|
||||||
|
this.orderGroupBox = new System.Windows.Forms.GroupBox();
|
||||||
|
this.orderComboBox = new System.Windows.Forms.ComboBox();
|
||||||
|
this.clearButton = new System.Windows.Forms.Button();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox3 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox3 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox4 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox4 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox5 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox5 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox6 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox6 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox7 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox7 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox8 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox8 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox9 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox9 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label9 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox10 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox10 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox11 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox11 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label11 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox12 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox12 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label12 = new System.Windows.Forms.Label();
|
||||||
|
this.orderGroupBox.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// okButton
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.okButton, "okButton");
|
||||||
|
this.okButton.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.okButton.Name = "okButton";
|
||||||
|
this.okButton.UseVisualStyleBackColor = true;
|
||||||
|
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||||
|
//
|
||||||
|
// orderGroupBox
|
||||||
|
//
|
||||||
|
this.orderGroupBox.Controls.Add(this.orderComboBox);
|
||||||
|
resources.ApplyResources(this.orderGroupBox, "orderGroupBox");
|
||||||
|
this.orderGroupBox.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.orderGroupBox.Name = "orderGroupBox";
|
||||||
|
this.orderGroupBox.TabStop = false;
|
||||||
|
//
|
||||||
|
// orderComboBox
|
||||||
|
//
|
||||||
|
this.orderComboBox.FormattingEnabled = true;
|
||||||
|
resources.ApplyResources(this.orderComboBox, "orderComboBox");
|
||||||
|
this.orderComboBox.Name = "orderComboBox";
|
||||||
|
//
|
||||||
|
// clearButton
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.clearButton, "clearButton");
|
||||||
|
this.clearButton.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.clearButton.Name = "clearButton";
|
||||||
|
this.clearButton.UseVisualStyleBackColor = true;
|
||||||
|
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label1, "label1");
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
//
|
||||||
|
// comboBox1
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox1, "comboBox1");
|
||||||
|
this.comboBox1.FormattingEnabled = true;
|
||||||
|
this.comboBox1.Name = "comboBox1";
|
||||||
|
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
||||||
|
this.comboBox1.TextChanged += new System.EventHandler(this.comboBox1_TextChanged);
|
||||||
|
this.comboBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox1_KeyPress);
|
||||||
|
//
|
||||||
|
// checkBox1
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox1, "checkBox1");
|
||||||
|
this.checkBox1.Name = "checkBox1";
|
||||||
|
this.checkBox1.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// checkBox2
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox2, "checkBox2");
|
||||||
|
this.checkBox2.Name = "checkBox2";
|
||||||
|
this.checkBox2.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox2
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox2, "comboBox2");
|
||||||
|
this.comboBox2.FormattingEnabled = true;
|
||||||
|
this.comboBox2.Name = "comboBox2";
|
||||||
|
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
|
||||||
|
this.comboBox2.TextChanged += new System.EventHandler(this.comboBox2_TextChanged);
|
||||||
|
this.comboBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox2_KeyPress);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label2, "label2");
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
//
|
||||||
|
// checkBox3
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox3, "checkBox3");
|
||||||
|
this.checkBox3.Name = "checkBox3";
|
||||||
|
this.checkBox3.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox3
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox3, "comboBox3");
|
||||||
|
this.comboBox3.FormattingEnabled = true;
|
||||||
|
this.comboBox3.Name = "comboBox3";
|
||||||
|
this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged);
|
||||||
|
this.comboBox3.TextChanged += new System.EventHandler(this.comboBox3_TextChanged);
|
||||||
|
this.comboBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox3_KeyPress);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label3, "label3");
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
//
|
||||||
|
// checkBox4
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox4, "checkBox4");
|
||||||
|
this.checkBox4.Name = "checkBox4";
|
||||||
|
this.checkBox4.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox4
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox4, "comboBox4");
|
||||||
|
this.comboBox4.FormattingEnabled = true;
|
||||||
|
this.comboBox4.Name = "comboBox4";
|
||||||
|
this.comboBox4.SelectedIndexChanged += new System.EventHandler(this.comboBox4_SelectedIndexChanged);
|
||||||
|
this.comboBox4.TextChanged += new System.EventHandler(this.comboBox4_TextChanged);
|
||||||
|
this.comboBox4.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox4_KeyPress);
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label4, "label4");
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
//
|
||||||
|
// checkBox5
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox5, "checkBox5");
|
||||||
|
this.checkBox5.Name = "checkBox5";
|
||||||
|
this.checkBox5.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox5
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox5, "comboBox5");
|
||||||
|
this.comboBox5.FormattingEnabled = true;
|
||||||
|
this.comboBox5.Name = "comboBox5";
|
||||||
|
this.comboBox5.SelectedIndexChanged += new System.EventHandler(this.comboBox5_SelectedIndexChanged);
|
||||||
|
this.comboBox5.TextChanged += new System.EventHandler(this.comboBox5_TextChanged);
|
||||||
|
this.comboBox5.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox5_KeyPress);
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label5, "label5");
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
//
|
||||||
|
// checkBox6
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox6, "checkBox6");
|
||||||
|
this.checkBox6.Name = "checkBox6";
|
||||||
|
this.checkBox6.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox6
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox6, "comboBox6");
|
||||||
|
this.comboBox6.FormattingEnabled = true;
|
||||||
|
this.comboBox6.Name = "comboBox6";
|
||||||
|
this.comboBox6.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
|
||||||
|
this.comboBox6.TextChanged += new System.EventHandler(this.comboBox6_TextChanged);
|
||||||
|
this.comboBox6.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox6_KeyPress);
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label6, "label6");
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
//
|
||||||
|
// checkBox7
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox7, "checkBox7");
|
||||||
|
this.checkBox7.Name = "checkBox7";
|
||||||
|
this.checkBox7.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox7
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox7, "comboBox7");
|
||||||
|
this.comboBox7.FormattingEnabled = true;
|
||||||
|
this.comboBox7.Name = "comboBox7";
|
||||||
|
this.comboBox7.SelectedIndexChanged += new System.EventHandler(this.comboBox7_SelectedIndexChanged);
|
||||||
|
this.comboBox7.TextChanged += new System.EventHandler(this.comboBox7_TextChanged);
|
||||||
|
this.comboBox7.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox7_KeyPress);
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label7, "label7");
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
//
|
||||||
|
// checkBox8
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox8, "checkBox8");
|
||||||
|
this.checkBox8.Name = "checkBox8";
|
||||||
|
this.checkBox8.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox8
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox8, "comboBox8");
|
||||||
|
this.comboBox8.FormattingEnabled = true;
|
||||||
|
this.comboBox8.Name = "comboBox8";
|
||||||
|
this.comboBox8.SelectedIndexChanged += new System.EventHandler(this.comboBox8_SelectedIndexChanged);
|
||||||
|
this.comboBox8.TextChanged += new System.EventHandler(this.comboBox8_TextChanged);
|
||||||
|
this.comboBox8.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox8_KeyPress);
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label8, "label8");
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
//
|
||||||
|
// checkBox9
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox9, "checkBox9");
|
||||||
|
this.checkBox9.Name = "checkBox9";
|
||||||
|
this.checkBox9.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox9
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox9, "comboBox9");
|
||||||
|
this.comboBox9.FormattingEnabled = true;
|
||||||
|
this.comboBox9.Name = "comboBox9";
|
||||||
|
this.comboBox9.SelectedIndexChanged += new System.EventHandler(this.comboBox9_SelectedIndexChanged);
|
||||||
|
this.comboBox9.TextChanged += new System.EventHandler(this.comboBox9_TextChanged);
|
||||||
|
this.comboBox9.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox9_KeyPress);
|
||||||
|
//
|
||||||
|
// label9
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label9, "label9");
|
||||||
|
this.label9.Name = "label9";
|
||||||
|
//
|
||||||
|
// checkBox10
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox10, "checkBox10");
|
||||||
|
this.checkBox10.Name = "checkBox10";
|
||||||
|
this.checkBox10.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox10
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox10, "comboBox10");
|
||||||
|
this.comboBox10.FormattingEnabled = true;
|
||||||
|
this.comboBox10.Name = "comboBox10";
|
||||||
|
this.comboBox10.SelectedIndexChanged += new System.EventHandler(this.comboBox10_SelectedIndexChanged);
|
||||||
|
this.comboBox10.TextChanged += new System.EventHandler(this.comboBox10_TextChanged);
|
||||||
|
this.comboBox10.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox10_KeyPress);
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label10, "label10");
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
//
|
||||||
|
// checkBox11
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox11, "checkBox11");
|
||||||
|
this.checkBox11.Name = "checkBox11";
|
||||||
|
this.checkBox11.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox11
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox11, "comboBox11");
|
||||||
|
this.comboBox11.FormattingEnabled = true;
|
||||||
|
this.comboBox11.Name = "comboBox11";
|
||||||
|
this.comboBox11.SelectedIndexChanged += new System.EventHandler(this.comboBox11_SelectedIndexChanged);
|
||||||
|
this.comboBox11.TextChanged += new System.EventHandler(this.comboBox11_TextChanged);
|
||||||
|
this.comboBox11.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox11_KeyPress);
|
||||||
|
//
|
||||||
|
// label11
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label11, "label11");
|
||||||
|
this.label11.Name = "label11";
|
||||||
|
//
|
||||||
|
// checkBox12
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox12, "checkBox12");
|
||||||
|
this.checkBox12.Name = "checkBox12";
|
||||||
|
this.checkBox12.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox12
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox12, "comboBox12");
|
||||||
|
this.comboBox12.FormattingEnabled = true;
|
||||||
|
this.comboBox12.Name = "comboBox12";
|
||||||
|
this.comboBox12.SelectedIndexChanged += new System.EventHandler(this.comboBox12_SelectedIndexChanged);
|
||||||
|
this.comboBox12.TextChanged += new System.EventHandler(this.comboBox12_TextChanged);
|
||||||
|
this.comboBox12.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox12_KeyPress);
|
||||||
|
//
|
||||||
|
// label12
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label12, "label12");
|
||||||
|
this.label12.Name = "label12";
|
||||||
|
//
|
||||||
|
// CycleBeginningForm
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this, "$this");
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.DarkGoldenrod;
|
||||||
|
this.Controls.Add(this.checkBox12);
|
||||||
|
this.Controls.Add(this.comboBox12);
|
||||||
|
this.Controls.Add(this.label12);
|
||||||
|
this.Controls.Add(this.checkBox11);
|
||||||
|
this.Controls.Add(this.comboBox11);
|
||||||
|
this.Controls.Add(this.label11);
|
||||||
|
this.Controls.Add(this.checkBox10);
|
||||||
|
this.Controls.Add(this.comboBox10);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.checkBox9);
|
||||||
|
this.Controls.Add(this.comboBox9);
|
||||||
|
this.Controls.Add(this.label9);
|
||||||
|
this.Controls.Add(this.checkBox8);
|
||||||
|
this.Controls.Add(this.comboBox8);
|
||||||
|
this.Controls.Add(this.label8);
|
||||||
|
this.Controls.Add(this.checkBox7);
|
||||||
|
this.Controls.Add(this.comboBox7);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.checkBox6);
|
||||||
|
this.Controls.Add(this.comboBox6);
|
||||||
|
this.Controls.Add(this.label6);
|
||||||
|
this.Controls.Add(this.checkBox5);
|
||||||
|
this.Controls.Add(this.comboBox5);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
|
this.Controls.Add(this.checkBox4);
|
||||||
|
this.Controls.Add(this.comboBox4);
|
||||||
|
this.Controls.Add(this.label4);
|
||||||
|
this.Controls.Add(this.checkBox3);
|
||||||
|
this.Controls.Add(this.comboBox3);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.checkBox2);
|
||||||
|
this.Controls.Add(this.comboBox2);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.checkBox1);
|
||||||
|
this.Controls.Add(this.comboBox1);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.clearButton);
|
||||||
|
this.Controls.Add(this.orderGroupBox);
|
||||||
|
this.Controls.Add(this.okButton);
|
||||||
|
this.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
this.Name = "CycleBeginningForm";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.CycleBeginningForm_Load);
|
||||||
|
this.orderGroupBox.ResumeLayout(false);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button okButton;
|
||||||
|
private System.Windows.Forms.GroupBox orderGroupBox;
|
||||||
|
private System.Windows.Forms.ComboBox orderComboBox;
|
||||||
|
private System.Windows.Forms.Button clearButton;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox1;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox1;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox2;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox2;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox3;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox3;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox4;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox4;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox5;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox5;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox6;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox6;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox7;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox7;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox8;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox8;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox9;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox9;
|
||||||
|
private System.Windows.Forms.Label label9;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox10;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox10;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox11;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox11;
|
||||||
|
private System.Windows.Forms.Label label11;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox12;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox12;
|
||||||
|
private System.Windows.Forms.Label label12;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,368 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
public partial class CycleBeginningForm : Form, GenericDevices.IHasCompleted
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(CycleBeginningForm));
|
||||||
|
|
||||||
|
/// <summary> Number of water meters </summary>
|
||||||
|
public readonly int WaterMetersCount;
|
||||||
|
|
||||||
|
/// To be retrieved after the form is closed
|
||||||
|
public string PurchaseOrder;
|
||||||
|
public string[] SNText;
|
||||||
|
public bool[] Disabled;
|
||||||
|
|
||||||
|
/// Set to 'true' when the form closes
|
||||||
|
public bool Completed { get { return completed; } }
|
||||||
|
bool completed;
|
||||||
|
|
||||||
|
/// <summary> Number of text boxes for serial numbers </summary>
|
||||||
|
int textBoxesCount;
|
||||||
|
Label[] labels;
|
||||||
|
ComboBox[] comboBoxes;
|
||||||
|
CheckBox[] checkBoxes;
|
||||||
|
IList<ComboBox> enabledComboBoxes;
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary> Parameterless constructor for common functionality </summary>
|
||||||
|
public CycleBeginningForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
textBoxesCount = 12;
|
||||||
|
labels = new Label[]
|
||||||
|
{
|
||||||
|
label1, label2, label3, label4, label5, label6,
|
||||||
|
label7, label8, label9, label10, label11, label12,
|
||||||
|
};
|
||||||
|
comboBoxes = new ComboBox[]
|
||||||
|
{
|
||||||
|
comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6,
|
||||||
|
comboBox7, comboBox8, comboBox9, comboBox10, comboBox11, comboBox12,
|
||||||
|
};
|
||||||
|
checkBoxes = new CheckBox[]
|
||||||
|
{
|
||||||
|
checkBox1, checkBox2, checkBox3, checkBox4, checkBox5, checkBox6,
|
||||||
|
checkBox7, checkBox8, checkBox9, checkBox10, checkBox11, checkBox12,
|
||||||
|
};
|
||||||
|
enabledComboBoxes = new List<ComboBox>();
|
||||||
|
|
||||||
|
completed = false;
|
||||||
|
StartForceCloseHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of text boxes for serial numbers</param>
|
||||||
|
public CycleBeginningForm(int waterMetersCount)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
SNText = new string[WaterMetersCount];
|
||||||
|
Disabled = new bool[WaterMetersCount];
|
||||||
|
|
||||||
|
ShuffleTextBoxes(Program.WMsCount, Program.LineSize);
|
||||||
|
|
||||||
|
//Height = 147 + WaterMetersCount * 90;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Make sure the layout of labels/text boxes on the screen
|
||||||
|
/// corresponds to the layout of watermeters of the test bench.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="wmsCount">Number of watermeters</param>
|
||||||
|
/// <param name="lineSize">Number of watermeters in one line</param>
|
||||||
|
void ShuffleTextBoxes(int wmsCount, int lineSize)
|
||||||
|
{
|
||||||
|
if (wmsCount < textBoxesCount && lineSize > 0)
|
||||||
|
{
|
||||||
|
int nrLines = (wmsCount + lineSize - 1) / lineSize;
|
||||||
|
int gap = (textBoxesCount - wmsCount) / nrLines;
|
||||||
|
|
||||||
|
int dest = 0;
|
||||||
|
for (int l = 0; l < nrLines; l++)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < lineSize; i++)
|
||||||
|
{
|
||||||
|
labels[dest] = labels[l * lineSize + l * gap + i];
|
||||||
|
comboBoxes[dest] = comboBoxes[l * lineSize + l * gap + i];
|
||||||
|
checkBoxes[dest] = checkBoxes[l * lineSize + l * gap + i];
|
||||||
|
dest++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
textBoxesCount = wmsCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CycleBeginningForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
|
||||||
|
PrepareOrderCombo(orderComboBox);
|
||||||
|
|
||||||
|
for (int i = 0; i < textBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == textBoxesCount)
|
||||||
|
{
|
||||||
|
comboBoxes[i].Items.Add(Program.LocalSettings.LastSNTexts[i]);
|
||||||
|
}
|
||||||
|
labels[i].Visible = comboBoxes[i].Visible = checkBoxes[i].Visible = true;
|
||||||
|
enabledComboBoxes.Add(comboBoxes[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
Text = Strings.Data;
|
||||||
|
orderGroupBox.Text = Strings.Purchase_Order;
|
||||||
|
for (int i = 0; i < textBoxesCount; i++)
|
||||||
|
{
|
||||||
|
labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString();
|
||||||
|
}
|
||||||
|
okButton.Text = Strings.OkBtnText;
|
||||||
|
clearButton.Text = Strings.ClearBtnText;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Load Purchase order combo box items from the LocalSettings PurchaseOrderHistory array
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="orderComboBox">Puchase order ComboBox</param>
|
||||||
|
void PrepareOrderCombo(ComboBox orderComboBox)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Program.LocalSettings.PurchaseOrderHistoryCount; i++)
|
||||||
|
{
|
||||||
|
orderComboBox.Items.Add(Program.LocalSettings.PurchaseOrderHistory[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (orderComboBox.Items.Count > 0)
|
||||||
|
{
|
||||||
|
orderComboBox.Text = orderComboBox.Items[0].ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void okButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PurchaseOrder = orderComboBox.Text;
|
||||||
|
Program.LocalSettings.UpdateHistory(orderComboBox.Text,
|
||||||
|
ref Program.LocalSettings.PurchaseOrderHistory
|
||||||
|
#if FUZHOU150 || FUZHOU300
|
||||||
|
, 20
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
|
Program.LocalSettings.LastSNTexts = SNText;
|
||||||
|
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, textBoxesCount); i++)
|
||||||
|
{
|
||||||
|
SNText[i] = comboBoxes[i].Text;
|
||||||
|
Disabled[i] = !checkBoxes[i].Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
completed = true;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When one combo box is updated using drop-down menu, all combo boxes
|
||||||
|
/// are updated by this function.
|
||||||
|
/// </summary>
|
||||||
|
private void UpdateAllCombos()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, textBoxesCount); i++)
|
||||||
|
{
|
||||||
|
comboBoxes[i].Text = Program.LocalSettings.LastSNTexts[i];
|
||||||
|
checkBoxes[i].Checked = !string.IsNullOrEmpty(comboBoxes[i].Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void clearButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, textBoxesCount); i++)
|
||||||
|
{
|
||||||
|
comboBoxes[i].Text = string.Empty;
|
||||||
|
checkBoxes[i].Checked = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void comboBox1_TextChanged(object sender, EventArgs e) { checkBox1.Checked = true; }
|
||||||
|
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox1.Text.Equals(comboBox1.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox2_TextChanged(object sender, EventArgs e) { checkBox2.Checked = true; }
|
||||||
|
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox2.Text.Equals(comboBox2.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox3_TextChanged(object sender, EventArgs e) { checkBox3.Checked = true; }
|
||||||
|
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox3.Text.Equals(comboBox3.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox4_TextChanged(object sender, EventArgs e) { checkBox4.Checked = true; }
|
||||||
|
private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox4.Text.Equals(comboBox4.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox5_TextChanged(object sender, EventArgs e) { checkBox5.Checked = true; }
|
||||||
|
private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox5.Text.Equals(comboBox5.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox6_TextChanged(object sender, EventArgs e) { checkBox6.Checked = true; }
|
||||||
|
private void comboBox6_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox6.Text.Equals(comboBox6.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox7_TextChanged(object sender, EventArgs e) { checkBox7.Checked = true; }
|
||||||
|
private void comboBox7_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox7.Text.Equals(comboBox7.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox8_TextChanged(object sender, EventArgs e) { checkBox8.Checked = true; }
|
||||||
|
private void comboBox8_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox8.Text.Equals(comboBox8.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox9_TextChanged(object sender, EventArgs e) { checkBox9.Checked = true; }
|
||||||
|
private void comboBox9_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox9.Text.Equals(comboBox9.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox10_TextChanged(object sender, EventArgs e) { checkBox10.Checked = true; }
|
||||||
|
private void comboBox10_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox10.Text.Equals(comboBox10.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox11_TextChanged(object sender, EventArgs e) { checkBox11.Checked = true; }
|
||||||
|
private void comboBox11_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox11.Text.Equals(comboBox11.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox12_TextChanged(object sender, EventArgs e) { checkBox12.Checked = true; }
|
||||||
|
private void comboBox12_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox12.Text.Equals(comboBox12.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Forced close handling
|
||||||
|
|
||||||
|
public void StartForceCloseHandler()
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.CloseModelessFormHandler += delegate(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
if (InvokeRequired) { Invoke(new EventHandler<EventArgs>(OnForceClose), sender, args); }
|
||||||
|
else OnForceClose(sender, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnForceClose(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Cancel;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Process a key press within any enabled text boxe
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
/// <param name="currentFocusOwner">TextBox control which received the event</param>
|
||||||
|
private void ProcKeyPress(object sender, KeyPressEventArgs e, ComboBox currentFocusOwner)
|
||||||
|
{
|
||||||
|
if (e.KeyChar == '+')
|
||||||
|
{
|
||||||
|
/// Process '+' key ..... Form completed
|
||||||
|
okButton_Click(sender, e);
|
||||||
|
}
|
||||||
|
if (e.KeyChar == '\r')
|
||||||
|
{
|
||||||
|
/// Process <enter> key ..... Next text field
|
||||||
|
if (enabledComboBoxes.Count < 2) return; /// There is just one enabled textbox
|
||||||
|
|
||||||
|
for (int i = 0; i < enabledComboBoxes.Count; i++)
|
||||||
|
{
|
||||||
|
if (enabledComboBoxes[i] == currentFocusOwner)
|
||||||
|
{
|
||||||
|
/// Change focus to the next enabled text box
|
||||||
|
enabledComboBoxes[(i + 1) % enabledComboBoxes.Count].Focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox1_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox1); }
|
||||||
|
private void comboBox2_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox2); }
|
||||||
|
private void comboBox3_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox3); }
|
||||||
|
private void comboBox4_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox4); }
|
||||||
|
private void comboBox5_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox5); }
|
||||||
|
private void comboBox6_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox6); }
|
||||||
|
private void comboBox7_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox7); }
|
||||||
|
private void comboBox8_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox8); }
|
||||||
|
private void comboBox9_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox9); }
|
||||||
|
private void comboBox10_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox10); }
|
||||||
|
private void comboBox11_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox11); }
|
||||||
|
private void comboBox12_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox12); }
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
+305
@@ -0,0 +1,305 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
partial class CycleEndForm
|
||||||
|
{
|
||||||
|
/// <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.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.okButton = new System.Windows.Forms.Button();
|
||||||
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox2.SuspendLayout();
|
||||||
|
this.groupBox1.SuspendLayout();
|
||||||
|
this.groupBox3.SuspendLayout();
|
||||||
|
this.groupBox4.SuspendLayout();
|
||||||
|
this.groupBox5.SuspendLayout();
|
||||||
|
this.groupBox6.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// groupBox2
|
||||||
|
//
|
||||||
|
this.groupBox2.Controls.Add(this.textBox2);
|
||||||
|
this.groupBox2.Controls.Add(this.label2);
|
||||||
|
this.groupBox2.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox2.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox2.Location = new System.Drawing.Point(25, 104);
|
||||||
|
this.groupBox2.Name = "groupBox2";
|
||||||
|
this.groupBox2.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox2.TabIndex = 2;
|
||||||
|
this.groupBox2.TabStop = false;
|
||||||
|
this.groupBox2.Text = "Wasserzähler 2";
|
||||||
|
//
|
||||||
|
// textBox2
|
||||||
|
//
|
||||||
|
this.textBox2.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox2.Name = "textBox2";
|
||||||
|
this.textBox2.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox2.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label2.TabIndex = 0;
|
||||||
|
this.label2.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Controls.Add(this.textBox1);
|
||||||
|
this.groupBox1.Controls.Add(this.label1);
|
||||||
|
this.groupBox1.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox1.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(25, 14);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox1.TabIndex = 1;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
this.groupBox1.Text = "Wasserzähler 1";
|
||||||
|
//
|
||||||
|
// textBox1
|
||||||
|
//
|
||||||
|
this.textBox1.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox1.Name = "textBox1";
|
||||||
|
this.textBox1.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox1.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// okButton
|
||||||
|
//
|
||||||
|
this.okButton.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.okButton.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.okButton.Location = new System.Drawing.Point(425, 23);
|
||||||
|
this.okButton.Name = "okButton";
|
||||||
|
this.okButton.Size = new System.Drawing.Size(98, 63);
|
||||||
|
this.okButton.TabIndex = 7;
|
||||||
|
this.okButton.Text = "OK";
|
||||||
|
this.okButton.UseVisualStyleBackColor = true;
|
||||||
|
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||||
|
//
|
||||||
|
// groupBox3
|
||||||
|
//
|
||||||
|
this.groupBox3.Controls.Add(this.textBox3);
|
||||||
|
this.groupBox3.Controls.Add(this.label3);
|
||||||
|
this.groupBox3.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox3.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox3.Location = new System.Drawing.Point(25, 194);
|
||||||
|
this.groupBox3.Name = "groupBox3";
|
||||||
|
this.groupBox3.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox3.TabIndex = 3;
|
||||||
|
this.groupBox3.TabStop = false;
|
||||||
|
this.groupBox3.Text = "Wasserzähler 3";
|
||||||
|
//
|
||||||
|
// textBox3
|
||||||
|
//
|
||||||
|
this.textBox3.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox3.Name = "textBox3";
|
||||||
|
this.textBox3.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox3.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label3.TabIndex = 0;
|
||||||
|
this.label3.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox4
|
||||||
|
//
|
||||||
|
this.groupBox4.Controls.Add(this.textBox4);
|
||||||
|
this.groupBox4.Controls.Add(this.label4);
|
||||||
|
this.groupBox4.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox4.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox4.Location = new System.Drawing.Point(25, 284);
|
||||||
|
this.groupBox4.Name = "groupBox4";
|
||||||
|
this.groupBox4.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox4.TabIndex = 4;
|
||||||
|
this.groupBox4.TabStop = false;
|
||||||
|
this.groupBox4.Text = "Wasserzähler 4";
|
||||||
|
//
|
||||||
|
// textBox4
|
||||||
|
//
|
||||||
|
this.textBox4.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox4.Name = "textBox4";
|
||||||
|
this.textBox4.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox4.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label4.TabIndex = 0;
|
||||||
|
this.label4.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox5
|
||||||
|
//
|
||||||
|
this.groupBox5.Controls.Add(this.textBox5);
|
||||||
|
this.groupBox5.Controls.Add(this.label5);
|
||||||
|
this.groupBox5.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox5.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox5.Location = new System.Drawing.Point(25, 374);
|
||||||
|
this.groupBox5.Name = "groupBox5";
|
||||||
|
this.groupBox5.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox5.TabIndex = 5;
|
||||||
|
this.groupBox5.TabStop = false;
|
||||||
|
this.groupBox5.Text = "Wasserzähler 5";
|
||||||
|
//
|
||||||
|
// textBox5
|
||||||
|
//
|
||||||
|
this.textBox5.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox5.Name = "textBox5";
|
||||||
|
this.textBox5.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox5.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label5.TabIndex = 0;
|
||||||
|
this.label5.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox6
|
||||||
|
//
|
||||||
|
this.groupBox6.Controls.Add(this.textBox6);
|
||||||
|
this.groupBox6.Controls.Add(this.label6);
|
||||||
|
this.groupBox6.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox6.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox6.Location = new System.Drawing.Point(25, 464);
|
||||||
|
this.groupBox6.Name = "groupBox6";
|
||||||
|
this.groupBox6.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox6.TabIndex = 6;
|
||||||
|
this.groupBox6.TabStop = false;
|
||||||
|
this.groupBox6.Text = "Wasserzähler 6";
|
||||||
|
//
|
||||||
|
// textBox6
|
||||||
|
//
|
||||||
|
this.textBox6.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox6.Name = "textBox6";
|
||||||
|
this.textBox6.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox6.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label6.TabIndex = 0;
|
||||||
|
this.label6.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// CycleEndForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.DarkGoldenrod;
|
||||||
|
this.ClientSize = new System.Drawing.Size(559, 566);
|
||||||
|
this.Controls.Add(this.groupBox6);
|
||||||
|
this.Controls.Add(this.groupBox5);
|
||||||
|
this.Controls.Add(this.groupBox4);
|
||||||
|
this.Controls.Add(this.groupBox3);
|
||||||
|
this.Controls.Add(this.okButton);
|
||||||
|
this.Controls.Add(this.groupBox2);
|
||||||
|
this.Controls.Add(this.groupBox1);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
this.Name = "CycleEndForm";
|
||||||
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||||
|
this.Text = "Daten";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.CycleEndForm_Load);
|
||||||
|
this.groupBox2.ResumeLayout(false);
|
||||||
|
this.groupBox2.PerformLayout();
|
||||||
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
this.groupBox1.PerformLayout();
|
||||||
|
this.groupBox3.ResumeLayout(false);
|
||||||
|
this.groupBox3.PerformLayout();
|
||||||
|
this.groupBox4.ResumeLayout(false);
|
||||||
|
this.groupBox4.PerformLayout();
|
||||||
|
this.groupBox5.ResumeLayout(false);
|
||||||
|
this.groupBox5.PerformLayout();
|
||||||
|
this.groupBox6.ResumeLayout(false);
|
||||||
|
this.groupBox6.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.GroupBox groupBox2;
|
||||||
|
private System.Windows.Forms.TextBox textBox2;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.TextBox textBox1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Button okButton;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox3;
|
||||||
|
private System.Windows.Forms.TextBox textBox3;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox4;
|
||||||
|
private System.Windows.Forms.TextBox textBox4;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox5;
|
||||||
|
private System.Windows.Forms.TextBox textBox5;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox6;
|
||||||
|
private System.Windows.Forms.TextBox textBox6;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
public partial class CycleEndForm : Form, GenericDevices.IHasCompleted
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(CycleEndForm));
|
||||||
|
|
||||||
|
/// <summary> Number of text boxes for serial numbers </summary>
|
||||||
|
public readonly int WaterMetersCount;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public string[] EndStateText;
|
||||||
|
|
||||||
|
// Set to 'true' when the form closes
|
||||||
|
public bool Completed { get { return completed; } }
|
||||||
|
bool completed;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of text boxes for serial numbers</param>
|
||||||
|
public CycleEndForm(int waterMetersCount)
|
||||||
|
{
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
InitializeComponent();
|
||||||
|
EndStateText = new string[WaterMetersCount];
|
||||||
|
completed = false;
|
||||||
|
StartForceCloseHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary> Parameterless constructor for 3 watermeters </summary>
|
||||||
|
public CycleEndForm()
|
||||||
|
: this(3)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CycleEndForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
|
||||||
|
Height = 50 + 90 * WaterMetersCount;
|
||||||
|
|
||||||
|
if (WaterMetersCount < 1) groupBox1.Visible = false;
|
||||||
|
if (WaterMetersCount < 2) groupBox2.Visible = false;
|
||||||
|
if (WaterMetersCount < 3) groupBox3.Visible = false;
|
||||||
|
if (WaterMetersCount < 4) groupBox4.Visible = false;
|
||||||
|
if (WaterMetersCount < 5) groupBox5.Visible = false;
|
||||||
|
if (WaterMetersCount < 6) groupBox6.Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
Text = Strings.Data;
|
||||||
|
groupBox1.Text = Strings.Water_Meter + " 1";
|
||||||
|
groupBox2.Text = Strings.Water_Meter + " 2";
|
||||||
|
groupBox3.Text = Strings.Water_Meter + " 3";
|
||||||
|
groupBox4.Text = Strings.Water_Meter + " 4";
|
||||||
|
groupBox5.Text = Strings.Water_Meter + " 5";
|
||||||
|
groupBox6.Text = Strings.Water_Meter + " 6";
|
||||||
|
label1.Text = Strings.State;
|
||||||
|
label2.Text = Strings.State;
|
||||||
|
label3.Text = Strings.State;
|
||||||
|
label4.Text = Strings.State;
|
||||||
|
label5.Text = Strings.State;
|
||||||
|
label6.Text = Strings.State;
|
||||||
|
okButton.Text = Strings.OkBtnText;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void okButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (WaterMetersCount >= 1) EndStateText[0] = textBox1.Text;
|
||||||
|
if (WaterMetersCount >= 2) EndStateText[1] = textBox3.Text;
|
||||||
|
if (WaterMetersCount >= 3) EndStateText[2] = textBox4.Text;
|
||||||
|
if (WaterMetersCount >= 4) EndStateText[3] = textBox5.Text;
|
||||||
|
if (WaterMetersCount >= 5) EndStateText[4] = textBox6.Text;
|
||||||
|
if (WaterMetersCount >= 6) EndStateText[5] = textBox6.Text;
|
||||||
|
|
||||||
|
completed = true;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Forced close handling
|
||||||
|
|
||||||
|
public void StartForceCloseHandler()
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.CloseModelessFormHandler += delegate(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
if (InvokeRequired) { Invoke(new EventHandler<EventArgs>(OnForceClose), sender, args); }
|
||||||
|
else OnForceClose(sender, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnForceClose(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Cancel;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
@@ -0,0 +1,276 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using log4net;
|
||||||
|
using TBF.BenchControl;
|
||||||
|
using TBF.BenchControl.GenericDevices;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
public class EntryForm : ComponentBase, IOperation, IDataEntry, IHasCycleBeginForm, IHasCycleEndForm, IHasWMStatesForm
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(EntryForm));
|
||||||
|
public override string ToString() { return string.Format("DataEntry.Standard12({0})", Cfg.ToString(1)); }
|
||||||
|
|
||||||
|
readonly EntryFormCfg entryFormCfg;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Properties set by the Begin, End and WMStates form
|
||||||
|
/// </summary>
|
||||||
|
string purchaseOrder;
|
||||||
|
public string PurchaseOrder { get { return purchaseOrder; } }
|
||||||
|
|
||||||
|
string[] serialNr;
|
||||||
|
public string SerialNr(int wmNr) { return (wmNr >= 0 && wmNr < serialNr.Length) ? serialNr[wmNr] : string.Empty; }
|
||||||
|
|
||||||
|
bool[] disabled;
|
||||||
|
public bool Disabled(int wmNr) { return (wmNr >= 0 && wmNr < disabled.Length) ? disabled[wmNr] : false; }
|
||||||
|
|
||||||
|
string[] wmCycleEndState;
|
||||||
|
public string WMCycleEndState(int wmNr) { return (wmNr >= 0 && wmNr < wmCycleEndState.Length) ? wmCycleEndState[wmNr] : string.Empty; }
|
||||||
|
|
||||||
|
float[] wmStartState;
|
||||||
|
public float WMStartState(int wmNr) { return (wmNr >= 0 && wmNr < wmStartState.Length) ? wmStartState[wmNr] : 0; }
|
||||||
|
|
||||||
|
float[] wmEndState;
|
||||||
|
public float WMEndState(int wmNr) { return (wmNr >= 0 && wmNr < wmEndState.Length) ? wmEndState[wmNr] : 0; }
|
||||||
|
|
||||||
|
string[] wmStartStateStr;
|
||||||
|
|
||||||
|
|
||||||
|
System.Windows.Forms.Form modelessDlg;
|
||||||
|
|
||||||
|
float refVolume;
|
||||||
|
float errLimLo;
|
||||||
|
float errLimHi;
|
||||||
|
|
||||||
|
bool resultSaved; /// Set in Run() when results are saved
|
||||||
|
|
||||||
|
IList<IWaterMeter> waterMeters; /// Passesd as an argument of ShowCycleBeginFormOp/ShowCycleEndFormOp constructor
|
||||||
|
|
||||||
|
public enum CurrentOp
|
||||||
|
{
|
||||||
|
None,
|
||||||
|
ShowFormAtCycleBeginning,
|
||||||
|
ShowFormAtCycleEnd,
|
||||||
|
EnterTestStartStates,
|
||||||
|
EnterTestEndStates,
|
||||||
|
}
|
||||||
|
|
||||||
|
CurrentOp currentOp;
|
||||||
|
|
||||||
|
|
||||||
|
public EntryForm()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntryForm(EntryFormCfg cfg)
|
||||||
|
: base(cfg)
|
||||||
|
{
|
||||||
|
serialNr = new string[Program.WMsCount];
|
||||||
|
disabled = new bool[Program.WMsCount];
|
||||||
|
wmStartState = new float[Program.WMsCount];
|
||||||
|
wmStartStateStr = new string[Program.WMsCount];
|
||||||
|
wmEndState = new float[Program.WMsCount];
|
||||||
|
wmCycleEndState = new string[Program.WMsCount];
|
||||||
|
|
||||||
|
entryFormCfg = cfg;
|
||||||
|
currentOp = CurrentOp.None;
|
||||||
|
log.Debug(this.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowCycleBeginFormOp(IList<IWaterMeter> waterMeters)
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.ShowFormAtCycleBeginning;
|
||||||
|
this.waterMeters = waterMeters;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowCycleEndFormOp(IList<IWaterMeter> waterMeters)
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.ShowFormAtCycleEnd;
|
||||||
|
this.waterMeters = waterMeters;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowTestStartFormOp()
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.EnterTestStartStates;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowTestEndFormOp(float refVolume, float errLimLo, float errLimHi)
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.EnterTestEndStates;
|
||||||
|
this.refVolume = refVolume;
|
||||||
|
this.errLimLo = errLimLo;
|
||||||
|
this.errLimHi = errLimHi;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
delegate void EntryFormDlgt(EntryForm myRef);
|
||||||
|
///
|
||||||
|
void OpenBeginningDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new CycleBeginningForm(Program.WMsCount);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
///
|
||||||
|
void OpenEndDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new CycleEndForm(Program.WMsCount);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
///
|
||||||
|
void OpenTestStartStatesDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new TestStartEndForm(Program.WMsCount, disabled);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
///
|
||||||
|
void OpenTestEndStatesDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new TestStartEndForm(Program.WMsCount, wmStartStateStr, disabled, refVolume, errLimLo, errLimHi);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Start this operation</summary>
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
|
resultSaved = false;
|
||||||
|
switch (currentOp)
|
||||||
|
{
|
||||||
|
case CurrentOp.ShowFormAtCycleBeginning:
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenBeginningDlg), this);
|
||||||
|
break;
|
||||||
|
case CurrentOp.ShowFormAtCycleEnd:
|
||||||
|
if (entryFormCfg.ShowCycleEndForm)
|
||||||
|
{
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenEndDlg), this);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case CurrentOp.EnterTestStartStates:
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenTestStartStatesDlg), this);
|
||||||
|
break;
|
||||||
|
case CurrentOp.EnterTestEndStates:
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenTestEndStatesDlg), this);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Run this operation</summary>
|
||||||
|
/// <returns>Event.ResultsPrinted</returns>
|
||||||
|
public Event Run()
|
||||||
|
{
|
||||||
|
if ((modelessDlg is IHasCompleted) && !(modelessDlg as IHasCompleted).Completed)
|
||||||
|
{
|
||||||
|
return Event.ModelessFormIsOpen;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!resultSaved) /// This is to save the result only once
|
||||||
|
{
|
||||||
|
if (currentOp == CurrentOp.ShowFormAtCycleBeginning)
|
||||||
|
{
|
||||||
|
CycleBeginningForm dlg = (modelessDlg as CycleBeginningForm);
|
||||||
|
|
||||||
|
if (dlg != null)
|
||||||
|
{
|
||||||
|
purchaseOrder = dlg.PurchaseOrder;
|
||||||
|
|
||||||
|
for (int i = 0; i < Math.Min(dlg.WaterMetersCount, waterMeters.Count); i++)
|
||||||
|
{
|
||||||
|
if (waterMeters[i] != null)
|
||||||
|
{
|
||||||
|
serialNr[i] = waterMeters[i].SerialNr = dlg.SNText[i];
|
||||||
|
disabled[i] = waterMeters[i].Disabled = dlg.Disabled[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (currentOp == CurrentOp.ShowFormAtCycleEnd)
|
||||||
|
{
|
||||||
|
CycleEndForm dlg = (modelessDlg as CycleEndForm);
|
||||||
|
int count = waterMeters.Count;
|
||||||
|
if ((dlg != null) && (count > dlg.WaterMetersCount)) count = dlg.WaterMetersCount;
|
||||||
|
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
if (waterMeters[i] != null)
|
||||||
|
{
|
||||||
|
/// In case entryFormCfg.ShowCycleEndForm == false dlg would be null, values would be string.Empty
|
||||||
|
wmCycleEndState[i] = waterMeters[i].EndState = (dlg != null) ? dlg.EndStateText[i] : string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (modelessDlg is TestStartEndForm && currentOp == CurrentOp.EnterTestStartStates)
|
||||||
|
{
|
||||||
|
/// Fixed start test - start
|
||||||
|
TestStartEndForm dlg = (modelessDlg as TestStartEndForm);
|
||||||
|
|
||||||
|
for (int i = 0; i < dlg.WaterMetersCount; i++)
|
||||||
|
{
|
||||||
|
wmStartState[i] = dlg.WMStartState[i];
|
||||||
|
wmStartStateStr[i] = dlg.WMStartStateStr[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (modelessDlg is TestStartEndForm && currentOp == CurrentOp.EnterTestEndStates)
|
||||||
|
{
|
||||||
|
/// Fixed start test - end
|
||||||
|
TestStartEndForm dlg = (modelessDlg as TestStartEndForm);
|
||||||
|
|
||||||
|
for (int i = 0; i < dlg.WaterMetersCount; i++)
|
||||||
|
{
|
||||||
|
wmEndState[i] = dlg.WMEndState[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resultSaved = true;
|
||||||
|
modelessDlg = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Event.ModelessFormClosed; /// Form closed
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Stop this operation</summary>
|
||||||
|
public void Stop()
|
||||||
|
{
|
||||||
|
if (modelessDlg is IHasCompleted)
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.OnCloseModelessForm(this, null);
|
||||||
|
modelessDlg = null;
|
||||||
|
}
|
||||||
|
currentOp = CurrentOp.None;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Updates test results with the information collected in watermeters.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMeters">Watermetes with information entered in the forms</param>
|
||||||
|
/// <param name="testResults">Test results to be updated with the information</param>
|
||||||
|
public void UpdateTestResults(IList<IWaterMeter> waterMeters, IList<Entities.TestResult> testResults)
|
||||||
|
{
|
||||||
|
foreach (var testRslt in testResults)
|
||||||
|
{
|
||||||
|
if (testRslt.MetersKind != Entities.MetersKind.Single) continue;
|
||||||
|
|
||||||
|
testRslt.PurchaseOrder = PurchaseOrder;
|
||||||
|
|
||||||
|
for (int i = 0; i < testRslt.Meters.Count; i++)
|
||||||
|
{
|
||||||
|
testRslt.Meters[i].SerialNr = SerialNr(i);
|
||||||
|
testRslt.Meters[i].Disabled = Disabled(i);
|
||||||
|
testRslt.Meters[i].EndState = WMCycleEndState(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
using TBF.BenchControl.Generic;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg
|
||||||
|
{
|
||||||
|
public IComponent GetComponent(IList<IComponent> components) { return new EntryForm(this); }
|
||||||
|
public IComponentCfgCtrl GetControl() { return new EntryFormCfgCtrl(); }
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Serialized parameters
|
||||||
|
///
|
||||||
|
public bool ShowCycleEndForm;
|
||||||
|
|
||||||
|
/// Private parameterless constructor invoked by all other (public) constructors
|
||||||
|
EntryFormCfg()
|
||||||
|
{
|
||||||
|
Name = "DataEntry-Standard-12";
|
||||||
|
ParentName = string.Empty;
|
||||||
|
ShowCycleEndForm = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntryFormCfg(IComponentFactory factory)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
this.Factory = factory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ToString(int i)
|
||||||
|
{
|
||||||
|
return string.Format("Name={0}, ShowEndForm={1}", Name, ShowCycleEndForm);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.BenchControl.Generic;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
public partial class EntryFormCfgCtrl : UserControl, IComponentCfgCtrl
|
||||||
|
{
|
||||||
|
static readonly ILog log = LogManager.GetLogger(typeof(EntryFormCfgCtrl));
|
||||||
|
|
||||||
|
public bool ShowMore { get { return false; } }
|
||||||
|
|
||||||
|
EntryFormCfg config;
|
||||||
|
public IComponentCfg Config
|
||||||
|
{
|
||||||
|
get { return config as IComponentCfg; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
config = value as EntryFormCfg;
|
||||||
|
Redraw();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntryFormCfgCtrl()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EntryFormCfgCtrl_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
Redraw();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
showCycleEndFormCheckBox.Text = Strings.Show_cycle_end_form;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Closing()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void Redraw()
|
||||||
|
{
|
||||||
|
if (config == null) return; /// Control was not loaded, settings were not changed
|
||||||
|
classNameLabel.Text = config.Factory.ClassName;
|
||||||
|
nameTextBox.Text = config.Name;
|
||||||
|
showCycleEndFormCheckBox.Checked = config.ShowCycleEndForm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Unlock()
|
||||||
|
{
|
||||||
|
nameTextBox.Enabled = true;
|
||||||
|
showCycleEndFormCheckBox.Enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CfgUpdateFlags VerifyCfg(ref string message)
|
||||||
|
{
|
||||||
|
CfgUpdateFlags flags = CfgUpdateFlags.None;
|
||||||
|
return flags;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CfgUpdateFlags UpdateCfg()
|
||||||
|
{
|
||||||
|
CfgUpdateFlags flags = CfgUpdateFlags.RestartRqrd;
|
||||||
|
|
||||||
|
if (config == null) return CfgUpdateFlags.Error; /// Control was not loaded, settings were not changed
|
||||||
|
|
||||||
|
config.Name = nameTextBox.Text;
|
||||||
|
config.ShowCycleEndForm = showCycleEndFormCheckBox.Checked;
|
||||||
|
|
||||||
|
return flags;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+100
@@ -0,0 +1,100 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
partial class EntryFormCfgCtrl
|
||||||
|
{
|
||||||
|
/// <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 Component 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.nameTextBox = new System.Windows.Forms.TextBox();
|
||||||
|
this.nameLabel = new System.Windows.Forms.Label();
|
||||||
|
this.classNameLabel = new System.Windows.Forms.Label();
|
||||||
|
this.showCycleEndFormCheckBox = new System.Windows.Forms.CheckBox();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// nameTextBox
|
||||||
|
//
|
||||||
|
this.nameTextBox.Enabled = false;
|
||||||
|
this.nameTextBox.Location = new System.Drawing.Point(131, 57);
|
||||||
|
this.nameTextBox.Name = "nameTextBox";
|
||||||
|
this.nameTextBox.Size = new System.Drawing.Size(130, 20);
|
||||||
|
this.nameTextBox.TabIndex = 5;
|
||||||
|
//
|
||||||
|
// nameLabel
|
||||||
|
//
|
||||||
|
this.nameLabel.AutoSize = true;
|
||||||
|
this.nameLabel.Location = new System.Drawing.Point(32, 60);
|
||||||
|
this.nameLabel.Name = "nameLabel";
|
||||||
|
this.nameLabel.Size = new System.Drawing.Size(35, 13);
|
||||||
|
this.nameLabel.TabIndex = 4;
|
||||||
|
this.nameLabel.Text = "Name";
|
||||||
|
//
|
||||||
|
// classNameLabel
|
||||||
|
//
|
||||||
|
this.classNameLabel.AutoSize = true;
|
||||||
|
this.classNameLabel.Location = new System.Drawing.Point(128, 32);
|
||||||
|
this.classNameLabel.Name = "classNameLabel";
|
||||||
|
this.classNameLabel.Size = new System.Drawing.Size(83, 13);
|
||||||
|
this.classNameLabel.TabIndex = 3;
|
||||||
|
this.classNameLabel.Text = "ComonentName";
|
||||||
|
//
|
||||||
|
// showCycleEndFormCheckBox
|
||||||
|
//
|
||||||
|
this.showCycleEndFormCheckBox.AutoSize = true;
|
||||||
|
this.showCycleEndFormCheckBox.Enabled = false;
|
||||||
|
this.showCycleEndFormCheckBox.Location = new System.Drawing.Point(131, 90);
|
||||||
|
this.showCycleEndFormCheckBox.Name = "showCycleEndFormCheckBox";
|
||||||
|
this.showCycleEndFormCheckBox.Size = new System.Drawing.Size(125, 17);
|
||||||
|
this.showCycleEndFormCheckBox.TabIndex = 13;
|
||||||
|
this.showCycleEndFormCheckBox.Text = "Show cycle end form";
|
||||||
|
this.showCycleEndFormCheckBox.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// EntryFormCfgCtrl
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.Controls.Add(this.showCycleEndFormCheckBox);
|
||||||
|
this.Controls.Add(this.nameTextBox);
|
||||||
|
this.Controls.Add(this.nameLabel);
|
||||||
|
this.Controls.Add(this.classNameLabel);
|
||||||
|
this.Name = "EntryFormCfgCtrl";
|
||||||
|
this.Size = new System.Drawing.Size(300, 200);
|
||||||
|
this.Load += new System.EventHandler(this.EntryFormCfgCtrl_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.TextBox nameTextBox;
|
||||||
|
private System.Windows.Forms.Label nameLabel;
|
||||||
|
private System.Windows.Forms.Label classNameLabel;
|
||||||
|
private System.Windows.Forms.CheckBox showCycleEndFormCheckBox;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using TBF.BenchControl.Generic;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
public class EntryFormFactory : IComponentFactory
|
||||||
|
{
|
||||||
|
public string ClassName { get { return "DataEntry-Standard-12"; } }
|
||||||
|
|
||||||
|
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
|
||||||
|
|
||||||
|
public IComponent DummyComponent() { return new EntryForm(); }
|
||||||
|
|
||||||
|
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
|
||||||
|
|
||||||
|
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
|
||||||
|
{
|
||||||
|
return ComponentCfgBase.CreateFromDbEntity(typeof(EntryFormCfg), component, this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,476 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
public partial class TestStartEndForm : Form, GenericDevices.IHasCompleted
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(TestStartEndForm));
|
||||||
|
|
||||||
|
// Set to 'true' when the form closes
|
||||||
|
public bool Completed { get { return completed; } }
|
||||||
|
bool completed;
|
||||||
|
|
||||||
|
/// <summary> Number of text boxes for serial numbers </summary>
|
||||||
|
public readonly int WaterMetersCount;
|
||||||
|
|
||||||
|
readonly bool[] disabled;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public float[] WMStartState;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public readonly string[] WMStartStateStr;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public float[] WMEndState;
|
||||||
|
|
||||||
|
bool endStates; /// false=start states, true=end states
|
||||||
|
float refVolume;
|
||||||
|
float warningLimLo; /// limit to display exclamation mark, typically 2x errLimLo
|
||||||
|
float warningLimHi; /// limit to display exclamation mark, typically 2x errLimHi
|
||||||
|
|
||||||
|
int TextBoxesCount;
|
||||||
|
///
|
||||||
|
Label[] labels;
|
||||||
|
TextBox[] startTextBoxes;
|
||||||
|
TextBox[] endTextBoxes;
|
||||||
|
IList<TextBox> enabledTextBoxes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Parameterless constructor initializing common part for start and endstate form
|
||||||
|
/// </summary>
|
||||||
|
public TestStartEndForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
TextBoxesCount = 12;
|
||||||
|
|
||||||
|
labels = new Label[]
|
||||||
|
{
|
||||||
|
label1, label2, label3, label4, label5, label6,
|
||||||
|
label7, label8, label9, label10, label11, label12,
|
||||||
|
};
|
||||||
|
startTextBoxes = new TextBox[]
|
||||||
|
{
|
||||||
|
startTextBox1, startTextBox2, startTextBox3, startTextBox4, startTextBox5, startTextBox6,
|
||||||
|
startTextBox7, startTextBox8, startTextBox9, startTextBox10, startTextBox11, startTextBox12,
|
||||||
|
};
|
||||||
|
endTextBoxes = new TextBox[]
|
||||||
|
{
|
||||||
|
endTextBox1, endTextBox2, endTextBox3, endTextBox4, endTextBox5, endTextBox6,
|
||||||
|
endTextBox7, endTextBox8, endTextBox9, endTextBox10, endTextBox11, endTextBox12,
|
||||||
|
};
|
||||||
|
enabledTextBoxes = new List<TextBox>();
|
||||||
|
|
||||||
|
completed = false;
|
||||||
|
StartForceCloseHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor to fill in start states
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of water meters</param>
|
||||||
|
/// <param name="disabled">Information from CycleBeginningForm about availability of water meters</param>
|
||||||
|
public TestStartEndForm(int waterMetersCount, bool[] disabled)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
endStates = false;
|
||||||
|
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
this.disabled = disabled;
|
||||||
|
|
||||||
|
ShuffleTextBoxes();
|
||||||
|
|
||||||
|
WMStartState = new float[waterMetersCount];
|
||||||
|
WMStartStateStr = new string[waterMetersCount];
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor to fill in end states
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of water meters</param>
|
||||||
|
/// <param name="wmStartStateStr">Information entered on test start</param>
|
||||||
|
/// <param name="disabled">Information from CycleBeginningForm about availability of water meters</param>
|
||||||
|
/// <param name="refVolume">Reference volume, it is used to verify the end state, show/hide exclamation if necessary</param>
|
||||||
|
/// <param name="errLimLo">Error limit low, it is used to verify the end state, show/hide exclamation if necessary</param>
|
||||||
|
/// <param name="errLimHi">Error limit high, it is used to verify the end state, show/hide exclamation if necessary</param>
|
||||||
|
public TestStartEndForm(int waterMetersCount, string[] wmStartStateStr, bool[] disabled,
|
||||||
|
float refVolume, float errLimLo, float errLimHi)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
endStates = true;
|
||||||
|
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
if (wmStartStateStr == null || wmStartStateStr.Length != waterMetersCount)
|
||||||
|
throw (new Exception("Invalid 'wmStartStateStr' argument"));
|
||||||
|
this.WMStartStateStr = wmStartStateStr;
|
||||||
|
this.disabled = disabled;
|
||||||
|
this.refVolume = refVolume;
|
||||||
|
this.warningLimLo = 2 * errLimLo;
|
||||||
|
this.warningLimHi = 2 * errLimHi;
|
||||||
|
|
||||||
|
ShuffleTextBoxes();
|
||||||
|
|
||||||
|
WMEndState = new float[waterMetersCount];
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Make sure the layout of labels/text boxes on the screen
|
||||||
|
/// corresponds to the layout of watermeters of the test bench.
|
||||||
|
/// </summary>
|
||||||
|
void ShuffleTextBoxes()
|
||||||
|
{
|
||||||
|
if (Program.WMsCount < TextBoxesCount)
|
||||||
|
{
|
||||||
|
int nrLines = Program.WMsCount / Program.LineSize;
|
||||||
|
int gap = (TextBoxesCount - Program.WMsCount) / nrLines;
|
||||||
|
|
||||||
|
int dest = 0;
|
||||||
|
for (int l = 0; l < nrLines; l++)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Program.LineSize; i++)
|
||||||
|
{
|
||||||
|
labels[dest] = labels[l * Program.LineSize + l * gap + i];
|
||||||
|
startTextBoxes[dest] = startTextBoxes[l * Program.LineSize + l * gap + i];
|
||||||
|
endTextBoxes[dest] = endTextBoxes[l * Program.LineSize + l * gap + i];
|
||||||
|
dest++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextBoxesCount = Program.WMsCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CycleEndForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
|
||||||
|
//Height = 115 + 90 * WaterMetersCount;
|
||||||
|
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (i < WaterMetersCount)
|
||||||
|
{
|
||||||
|
labels[i].Visible = startTextBoxes[i].Visible = endTextBoxes[i].Visible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (endStates)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (WMStartStateStr != null && i < WMStartStateStr.Length)
|
||||||
|
{
|
||||||
|
startTextBoxes[i].Text = WMStartStateStr[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (disabled != null && i < disabled.Length && disabled[i])
|
||||||
|
{
|
||||||
|
endTextBoxes[i].Enabled = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
endTextBoxes[i].Enabled = true;
|
||||||
|
enabledTextBoxes.Add(endTextBoxes[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (disabled != null && i < disabled.Length && disabled[i])
|
||||||
|
{
|
||||||
|
startTextBoxes[i].Enabled = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
startTextBoxes[i].Enabled = true;
|
||||||
|
enabledTextBoxes.Add(startTextBoxes[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
Text = Strings.Water_Meter_States;
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
labels[i].Text = Strings.Water_Meter + " " + (i + 1).ToString();
|
||||||
|
}
|
||||||
|
startLabel.Text = Strings.Start;
|
||||||
|
endLabel.Text = Strings.End;
|
||||||
|
okButton.Text = Strings.OkBtnText;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void okButton_Click(object sender, EventArgs eArgs)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (endStates)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, TextBoxesCount); i++)
|
||||||
|
{
|
||||||
|
if (endTextBoxes[i].Visible && endTextBoxes[i].Enabled)
|
||||||
|
{
|
||||||
|
WMEndState[i] = Utils.ParseUFloat(endTextBoxes[i].Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, TextBoxesCount); i++)
|
||||||
|
{
|
||||||
|
if (startTextBoxes[i].Visible && startTextBoxes[i].Enabled)
|
||||||
|
{
|
||||||
|
WMStartStateStr[i] = startTextBoxes[i].Text;
|
||||||
|
WMStartState[i] = Utils.ParseUFloat(startTextBoxes[i].Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
log.ErrorFormat("Exception: {0}", e.Message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
completed = true;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Forced close handling
|
||||||
|
|
||||||
|
public void StartForceCloseHandler()
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.CloseModelessFormHandler += delegate(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
if (InvokeRequired) { Invoke(new EventHandler<EventArgs>(OnForceClose), sender, args); }
|
||||||
|
else OnForceClose(sender, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnForceClose(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Cancel;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 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 endTextBoxes (1..24).
|
||||||
|
/// </summary>
|
||||||
|
private void endTextBox1_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox1.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox1.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { };
|
||||||
|
exclamation1.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox2_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox2.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox2.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation2.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox3_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox3.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox3.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation3.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox4_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox4.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox4.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation4.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox5_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox5.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox5.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation5.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox6_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox6.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox6.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation6.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox7_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox7.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox7.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation7.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox8_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox8.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox8.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation8.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox9_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox9.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox9.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation9.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void endTextBox10_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox10.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox10.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation10.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void endTextBox11_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox11.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox11.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation11.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox12_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox12.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox12.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation12.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Process a key press within any enabled text boxe
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
/// <param name="currentFocusOwner">TextBox control which received the event</param>
|
||||||
|
private void ProcKeyPress(object sender, KeyPressEventArgs e, TextBox currentFocusOwner)
|
||||||
|
{
|
||||||
|
if (e.KeyChar == '+')
|
||||||
|
{
|
||||||
|
/// Process '+' key ..... Form completed
|
||||||
|
okButton_Click(sender, e);
|
||||||
|
}
|
||||||
|
if (e.KeyChar == '\r')
|
||||||
|
{
|
||||||
|
/// Process <enter> key ..... Next text field
|
||||||
|
if (enabledTextBoxes.Count < 2) return; /// There is just one enabled textbox
|
||||||
|
|
||||||
|
for (int i = 0; i < enabledTextBoxes.Count; i++)
|
||||||
|
{
|
||||||
|
if (enabledTextBoxes[i] == currentFocusOwner)
|
||||||
|
{
|
||||||
|
/// Change focus to the next enabled text box
|
||||||
|
enabledTextBoxes[(i + 1) % enabledTextBoxes.Count].Focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void startTextBox1_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox1); }
|
||||||
|
private void startTextBox2_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox2); }
|
||||||
|
private void startTextBox3_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox3); }
|
||||||
|
private void startTextBox4_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox4); }
|
||||||
|
private void startTextBox5_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox5); }
|
||||||
|
private void startTextBox6_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox6); }
|
||||||
|
private void startTextBox7_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox7); }
|
||||||
|
private void startTextBox8_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox8); }
|
||||||
|
private void startTextBox9_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox9); }
|
||||||
|
private void startTextBox10_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox10); }
|
||||||
|
private void startTextBox11_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox11); }
|
||||||
|
private void startTextBox12_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox12); }
|
||||||
|
|
||||||
|
private void endTextBox1_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox1); }
|
||||||
|
private void endTextBox2_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox2); }
|
||||||
|
private void endTextBox3_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox3); }
|
||||||
|
private void endTextBox4_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox4); }
|
||||||
|
private void endTextBox5_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox5); }
|
||||||
|
private void endTextBox6_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox6); }
|
||||||
|
private void endTextBox7_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox7); }
|
||||||
|
private void endTextBox8_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox8); }
|
||||||
|
private void endTextBox9_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox9); }
|
||||||
|
private void endTextBox10_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox10); }
|
||||||
|
private void endTextBox11_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox11); }
|
||||||
|
private void endTextBox12_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox12); }
|
||||||
|
}
|
||||||
|
}
|
||||||
+794
@@ -0,0 +1,794 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard12
|
||||||
|
{
|
||||||
|
partial class TestStartEndForm
|
||||||
|
{
|
||||||
|
/// <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.exclamation1 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.okButton = new System.Windows.Forms.Button();
|
||||||
|
this.exclamation3 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox3 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox3 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation4 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox4 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox4 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation5 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox5 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox5 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation6 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox6 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox6 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.startLabel = new System.Windows.Forms.Label();
|
||||||
|
this.endLabel = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.endTextBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
this.startTextBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
this.exclamation2 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation7 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox7 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox7 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation8 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox8 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox8 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation9 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox9 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox9 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label9 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation10 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox10 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox10 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation11 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox11 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox11 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label11 = new System.Windows.Forms.Label();
|
||||||
|
this.exclamation12 = new System.Windows.Forms.Label();
|
||||||
|
this.startTextBox12 = new System.Windows.Forms.TextBox();
|
||||||
|
this.endTextBox12 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label12 = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// exclamation1
|
||||||
|
//
|
||||||
|
this.exclamation1.AutoSize = true;
|
||||||
|
this.exclamation1.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation1.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation1.Location = new System.Drawing.Point(532, 56);
|
||||||
|
this.exclamation1.Name = "exclamation1";
|
||||||
|
this.exclamation1.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation1.TabIndex = 5;
|
||||||
|
this.exclamation1.Text = "!";
|
||||||
|
this.exclamation1.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox1
|
||||||
|
//
|
||||||
|
this.startTextBox1.Enabled = false;
|
||||||
|
this.startTextBox1.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox1.Location = new System.Drawing.Point(185, 60);
|
||||||
|
this.startTextBox1.Name = "startTextBox1";
|
||||||
|
this.startTextBox1.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox1.TabIndex = 3;
|
||||||
|
this.startTextBox1.Visible = false;
|
||||||
|
this.startTextBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox1_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox1
|
||||||
|
//
|
||||||
|
this.endTextBox1.Enabled = false;
|
||||||
|
this.endTextBox1.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox1.Location = new System.Drawing.Point(367, 60);
|
||||||
|
this.endTextBox1.Name = "endTextBox1";
|
||||||
|
this.endTextBox1.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox1.TabIndex = 4;
|
||||||
|
this.endTextBox1.Visible = false;
|
||||||
|
this.endTextBox1.TextChanged += new System.EventHandler(this.endTextBox1_TextChanged);
|
||||||
|
this.endTextBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox1_KeyPress);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(23, 63);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label1.TabIndex = 2;
|
||||||
|
this.label1.Text = "Water Meter 1";
|
||||||
|
this.label1.Visible = false;
|
||||||
|
//
|
||||||
|
// okButton
|
||||||
|
//
|
||||||
|
this.okButton.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.okButton.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.okButton.Location = new System.Drawing.Point(603, 60);
|
||||||
|
this.okButton.Name = "okButton";
|
||||||
|
this.okButton.Size = new System.Drawing.Size(98, 63);
|
||||||
|
this.okButton.TabIndex = 100;
|
||||||
|
this.okButton.Text = "OK";
|
||||||
|
this.okButton.UseVisualStyleBackColor = true;
|
||||||
|
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||||
|
//
|
||||||
|
// exclamation3
|
||||||
|
//
|
||||||
|
this.exclamation3.AutoSize = true;
|
||||||
|
this.exclamation3.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation3.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation3.Location = new System.Drawing.Point(532, 144);
|
||||||
|
this.exclamation3.Name = "exclamation3";
|
||||||
|
this.exclamation3.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation3.TabIndex = 13;
|
||||||
|
this.exclamation3.Text = "!";
|
||||||
|
this.exclamation3.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox3
|
||||||
|
//
|
||||||
|
this.startTextBox3.Enabled = false;
|
||||||
|
this.startTextBox3.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox3.Location = new System.Drawing.Point(185, 148);
|
||||||
|
this.startTextBox3.Name = "startTextBox3";
|
||||||
|
this.startTextBox3.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox3.TabIndex = 11;
|
||||||
|
this.startTextBox3.Visible = false;
|
||||||
|
this.startTextBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox3_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox3
|
||||||
|
//
|
||||||
|
this.endTextBox3.Enabled = false;
|
||||||
|
this.endTextBox3.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox3.Location = new System.Drawing.Point(367, 148);
|
||||||
|
this.endTextBox3.Name = "endTextBox3";
|
||||||
|
this.endTextBox3.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox3.TabIndex = 12;
|
||||||
|
this.endTextBox3.Visible = false;
|
||||||
|
this.endTextBox3.TextChanged += new System.EventHandler(this.endTextBox3_TextChanged);
|
||||||
|
this.endTextBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox3_KeyPress);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label3.Location = new System.Drawing.Point(23, 151);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label3.TabIndex = 10;
|
||||||
|
this.label3.Text = "Water Meter 3";
|
||||||
|
this.label3.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation4
|
||||||
|
//
|
||||||
|
this.exclamation4.AutoSize = true;
|
||||||
|
this.exclamation4.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation4.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation4.Location = new System.Drawing.Point(532, 188);
|
||||||
|
this.exclamation4.Name = "exclamation4";
|
||||||
|
this.exclamation4.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation4.TabIndex = 17;
|
||||||
|
this.exclamation4.Text = "!";
|
||||||
|
this.exclamation4.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox4
|
||||||
|
//
|
||||||
|
this.startTextBox4.Enabled = false;
|
||||||
|
this.startTextBox4.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox4.Location = new System.Drawing.Point(185, 192);
|
||||||
|
this.startTextBox4.Name = "startTextBox4";
|
||||||
|
this.startTextBox4.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox4.TabIndex = 15;
|
||||||
|
this.startTextBox4.Visible = false;
|
||||||
|
this.startTextBox4.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox4_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox4
|
||||||
|
//
|
||||||
|
this.endTextBox4.Enabled = false;
|
||||||
|
this.endTextBox4.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox4.Location = new System.Drawing.Point(367, 192);
|
||||||
|
this.endTextBox4.Name = "endTextBox4";
|
||||||
|
this.endTextBox4.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox4.TabIndex = 16;
|
||||||
|
this.endTextBox4.Visible = false;
|
||||||
|
this.endTextBox4.TextChanged += new System.EventHandler(this.endTextBox4_TextChanged);
|
||||||
|
this.endTextBox4.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox4_KeyPress);
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label4.Location = new System.Drawing.Point(23, 195);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label4.TabIndex = 14;
|
||||||
|
this.label4.Text = "Water Meter 4";
|
||||||
|
this.label4.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation5
|
||||||
|
//
|
||||||
|
this.exclamation5.AutoSize = true;
|
||||||
|
this.exclamation5.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation5.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation5.Location = new System.Drawing.Point(532, 232);
|
||||||
|
this.exclamation5.Name = "exclamation5";
|
||||||
|
this.exclamation5.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation5.TabIndex = 21;
|
||||||
|
this.exclamation5.Text = "!";
|
||||||
|
this.exclamation5.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox5
|
||||||
|
//
|
||||||
|
this.startTextBox5.Enabled = false;
|
||||||
|
this.startTextBox5.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox5.Location = new System.Drawing.Point(185, 236);
|
||||||
|
this.startTextBox5.Name = "startTextBox5";
|
||||||
|
this.startTextBox5.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox5.TabIndex = 19;
|
||||||
|
this.startTextBox5.Visible = false;
|
||||||
|
this.startTextBox5.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox5_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox5
|
||||||
|
//
|
||||||
|
this.endTextBox5.Enabled = false;
|
||||||
|
this.endTextBox5.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox5.Location = new System.Drawing.Point(367, 236);
|
||||||
|
this.endTextBox5.Name = "endTextBox5";
|
||||||
|
this.endTextBox5.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox5.TabIndex = 20;
|
||||||
|
this.endTextBox5.Visible = false;
|
||||||
|
this.endTextBox5.TextChanged += new System.EventHandler(this.endTextBox5_TextChanged);
|
||||||
|
this.endTextBox5.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox5_KeyPress);
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label5.Location = new System.Drawing.Point(23, 239);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label5.TabIndex = 18;
|
||||||
|
this.label5.Text = "Water Meter 5";
|
||||||
|
this.label5.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation6
|
||||||
|
//
|
||||||
|
this.exclamation6.AutoSize = true;
|
||||||
|
this.exclamation6.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation6.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation6.Location = new System.Drawing.Point(532, 276);
|
||||||
|
this.exclamation6.Name = "exclamation6";
|
||||||
|
this.exclamation6.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation6.TabIndex = 25;
|
||||||
|
this.exclamation6.Text = "!";
|
||||||
|
this.exclamation6.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox6
|
||||||
|
//
|
||||||
|
this.startTextBox6.Enabled = false;
|
||||||
|
this.startTextBox6.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox6.Location = new System.Drawing.Point(185, 280);
|
||||||
|
this.startTextBox6.Name = "startTextBox6";
|
||||||
|
this.startTextBox6.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox6.TabIndex = 23;
|
||||||
|
this.startTextBox6.Visible = false;
|
||||||
|
this.startTextBox6.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox6_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox6
|
||||||
|
//
|
||||||
|
this.endTextBox6.Enabled = false;
|
||||||
|
this.endTextBox6.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox6.Location = new System.Drawing.Point(367, 280);
|
||||||
|
this.endTextBox6.Name = "endTextBox6";
|
||||||
|
this.endTextBox6.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox6.TabIndex = 24;
|
||||||
|
this.endTextBox6.Visible = false;
|
||||||
|
this.endTextBox6.TextChanged += new System.EventHandler(this.endTextBox6_TextChanged);
|
||||||
|
this.endTextBox6.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox6_KeyPress);
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label6.Location = new System.Drawing.Point(23, 283);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label6.TabIndex = 22;
|
||||||
|
this.label6.Text = "Water Meter 6";
|
||||||
|
this.label6.Visible = false;
|
||||||
|
//
|
||||||
|
// startLabel
|
||||||
|
//
|
||||||
|
this.startLabel.AutoSize = true;
|
||||||
|
this.startLabel.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startLabel.Location = new System.Drawing.Point(237, 21);
|
||||||
|
this.startLabel.Name = "startLabel";
|
||||||
|
this.startLabel.Size = new System.Drawing.Size(56, 23);
|
||||||
|
this.startLabel.TabIndex = 0;
|
||||||
|
this.startLabel.Text = "Start";
|
||||||
|
//
|
||||||
|
// endLabel
|
||||||
|
//
|
||||||
|
this.endLabel.AutoSize = true;
|
||||||
|
this.endLabel.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endLabel.Location = new System.Drawing.Point(423, 21);
|
||||||
|
this.endLabel.Name = "endLabel";
|
||||||
|
this.endLabel.Size = new System.Drawing.Size(46, 23);
|
||||||
|
this.endLabel.TabIndex = 1;
|
||||||
|
this.endLabel.Text = "End";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label2.Location = new System.Drawing.Point(23, 107);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label2.TabIndex = 6;
|
||||||
|
this.label2.Text = "Water Meter 2";
|
||||||
|
this.label2.Visible = false;
|
||||||
|
//
|
||||||
|
// endTextBox2
|
||||||
|
//
|
||||||
|
this.endTextBox2.Enabled = false;
|
||||||
|
this.endTextBox2.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox2.Location = new System.Drawing.Point(367, 104);
|
||||||
|
this.endTextBox2.Name = "endTextBox2";
|
||||||
|
this.endTextBox2.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox2.TabIndex = 8;
|
||||||
|
this.endTextBox2.Visible = false;
|
||||||
|
this.endTextBox2.TextChanged += new System.EventHandler(this.endTextBox2_TextChanged);
|
||||||
|
this.endTextBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox2_KeyPress);
|
||||||
|
//
|
||||||
|
// startTextBox2
|
||||||
|
//
|
||||||
|
this.startTextBox2.Enabled = false;
|
||||||
|
this.startTextBox2.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox2.Location = new System.Drawing.Point(185, 104);
|
||||||
|
this.startTextBox2.Name = "startTextBox2";
|
||||||
|
this.startTextBox2.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox2.TabIndex = 7;
|
||||||
|
this.startTextBox2.Visible = false;
|
||||||
|
this.startTextBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox2_KeyPress);
|
||||||
|
//
|
||||||
|
// exclamation2
|
||||||
|
//
|
||||||
|
this.exclamation2.AutoSize = true;
|
||||||
|
this.exclamation2.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation2.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation2.Location = new System.Drawing.Point(532, 100);
|
||||||
|
this.exclamation2.Name = "exclamation2";
|
||||||
|
this.exclamation2.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation2.TabIndex = 9;
|
||||||
|
this.exclamation2.Text = "!";
|
||||||
|
this.exclamation2.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation7
|
||||||
|
//
|
||||||
|
this.exclamation7.AutoSize = true;
|
||||||
|
this.exclamation7.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation7.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation7.Location = new System.Drawing.Point(532, 320);
|
||||||
|
this.exclamation7.Name = "exclamation7";
|
||||||
|
this.exclamation7.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation7.TabIndex = 29;
|
||||||
|
this.exclamation7.Text = "!";
|
||||||
|
this.exclamation7.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox7
|
||||||
|
//
|
||||||
|
this.startTextBox7.Enabled = false;
|
||||||
|
this.startTextBox7.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox7.Location = new System.Drawing.Point(185, 324);
|
||||||
|
this.startTextBox7.Name = "startTextBox7";
|
||||||
|
this.startTextBox7.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox7.TabIndex = 27;
|
||||||
|
this.startTextBox7.Visible = false;
|
||||||
|
this.startTextBox7.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox7_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox7
|
||||||
|
//
|
||||||
|
this.endTextBox7.Enabled = false;
|
||||||
|
this.endTextBox7.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox7.Location = new System.Drawing.Point(367, 324);
|
||||||
|
this.endTextBox7.Name = "endTextBox7";
|
||||||
|
this.endTextBox7.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox7.TabIndex = 28;
|
||||||
|
this.endTextBox7.Visible = false;
|
||||||
|
this.endTextBox7.TextChanged += new System.EventHandler(this.endTextBox7_TextChanged);
|
||||||
|
this.endTextBox7.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox7_KeyPress);
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label7.Location = new System.Drawing.Point(23, 327);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label7.TabIndex = 26;
|
||||||
|
this.label7.Text = "Water Meter 7";
|
||||||
|
this.label7.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation8
|
||||||
|
//
|
||||||
|
this.exclamation8.AutoSize = true;
|
||||||
|
this.exclamation8.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation8.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation8.Location = new System.Drawing.Point(532, 364);
|
||||||
|
this.exclamation8.Name = "exclamation8";
|
||||||
|
this.exclamation8.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation8.TabIndex = 33;
|
||||||
|
this.exclamation8.Text = "!";
|
||||||
|
this.exclamation8.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox8
|
||||||
|
//
|
||||||
|
this.startTextBox8.Enabled = false;
|
||||||
|
this.startTextBox8.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox8.Location = new System.Drawing.Point(185, 368);
|
||||||
|
this.startTextBox8.Name = "startTextBox8";
|
||||||
|
this.startTextBox8.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox8.TabIndex = 31;
|
||||||
|
this.startTextBox8.Visible = false;
|
||||||
|
this.startTextBox8.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox8_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox8
|
||||||
|
//
|
||||||
|
this.endTextBox8.Enabled = false;
|
||||||
|
this.endTextBox8.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox8.Location = new System.Drawing.Point(367, 368);
|
||||||
|
this.endTextBox8.Name = "endTextBox8";
|
||||||
|
this.endTextBox8.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox8.TabIndex = 32;
|
||||||
|
this.endTextBox8.Visible = false;
|
||||||
|
this.endTextBox8.TextChanged += new System.EventHandler(this.endTextBox8_TextChanged);
|
||||||
|
this.endTextBox8.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox8_KeyPress);
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
this.label8.AutoSize = true;
|
||||||
|
this.label8.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label8.Location = new System.Drawing.Point(23, 371);
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
this.label8.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label8.TabIndex = 30;
|
||||||
|
this.label8.Text = "Water Meter 8";
|
||||||
|
this.label8.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation9
|
||||||
|
//
|
||||||
|
this.exclamation9.AutoSize = true;
|
||||||
|
this.exclamation9.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation9.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation9.Location = new System.Drawing.Point(532, 408);
|
||||||
|
this.exclamation9.Name = "exclamation9";
|
||||||
|
this.exclamation9.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation9.TabIndex = 37;
|
||||||
|
this.exclamation9.Text = "!";
|
||||||
|
this.exclamation9.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox9
|
||||||
|
//
|
||||||
|
this.startTextBox9.Enabled = false;
|
||||||
|
this.startTextBox9.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox9.Location = new System.Drawing.Point(185, 412);
|
||||||
|
this.startTextBox9.Name = "startTextBox9";
|
||||||
|
this.startTextBox9.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox9.TabIndex = 35;
|
||||||
|
this.startTextBox9.Visible = false;
|
||||||
|
this.startTextBox9.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox9_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox9
|
||||||
|
//
|
||||||
|
this.endTextBox9.Enabled = false;
|
||||||
|
this.endTextBox9.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox9.Location = new System.Drawing.Point(367, 412);
|
||||||
|
this.endTextBox9.Name = "endTextBox9";
|
||||||
|
this.endTextBox9.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox9.TabIndex = 36;
|
||||||
|
this.endTextBox9.Visible = false;
|
||||||
|
this.endTextBox9.TextChanged += new System.EventHandler(this.endTextBox9_TextChanged);
|
||||||
|
this.endTextBox9.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox9_KeyPress);
|
||||||
|
//
|
||||||
|
// label9
|
||||||
|
//
|
||||||
|
this.label9.AutoSize = true;
|
||||||
|
this.label9.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label9.Location = new System.Drawing.Point(23, 415);
|
||||||
|
this.label9.Name = "label9";
|
||||||
|
this.label9.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.label9.TabIndex = 34;
|
||||||
|
this.label9.Text = "Water Meter 9";
|
||||||
|
this.label9.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation10
|
||||||
|
//
|
||||||
|
this.exclamation10.AutoSize = true;
|
||||||
|
this.exclamation10.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation10.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation10.Location = new System.Drawing.Point(532, 452);
|
||||||
|
this.exclamation10.Name = "exclamation10";
|
||||||
|
this.exclamation10.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation10.TabIndex = 41;
|
||||||
|
this.exclamation10.Text = "!";
|
||||||
|
this.exclamation10.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox10
|
||||||
|
//
|
||||||
|
this.startTextBox10.Enabled = false;
|
||||||
|
this.startTextBox10.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox10.Location = new System.Drawing.Point(185, 456);
|
||||||
|
this.startTextBox10.Name = "startTextBox10";
|
||||||
|
this.startTextBox10.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox10.TabIndex = 39;
|
||||||
|
this.startTextBox10.Visible = false;
|
||||||
|
this.startTextBox10.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox10_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox10
|
||||||
|
//
|
||||||
|
this.endTextBox10.Enabled = false;
|
||||||
|
this.endTextBox10.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox10.Location = new System.Drawing.Point(367, 456);
|
||||||
|
this.endTextBox10.Name = "endTextBox10";
|
||||||
|
this.endTextBox10.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox10.TabIndex = 40;
|
||||||
|
this.endTextBox10.Visible = false;
|
||||||
|
this.endTextBox10.TextChanged += new System.EventHandler(this.endTextBox10_TextChanged);
|
||||||
|
this.endTextBox10.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox10_KeyPress);
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
this.label10.AutoSize = true;
|
||||||
|
this.label10.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label10.Location = new System.Drawing.Point(23, 459);
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
this.label10.Size = new System.Drawing.Size(157, 23);
|
||||||
|
this.label10.TabIndex = 38;
|
||||||
|
this.label10.Text = "Water Meter 10";
|
||||||
|
this.label10.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation11
|
||||||
|
//
|
||||||
|
this.exclamation11.AutoSize = true;
|
||||||
|
this.exclamation11.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation11.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation11.Location = new System.Drawing.Point(532, 496);
|
||||||
|
this.exclamation11.Name = "exclamation11";
|
||||||
|
this.exclamation11.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation11.TabIndex = 45;
|
||||||
|
this.exclamation11.Text = "!";
|
||||||
|
this.exclamation11.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox11
|
||||||
|
//
|
||||||
|
this.startTextBox11.Enabled = false;
|
||||||
|
this.startTextBox11.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox11.Location = new System.Drawing.Point(185, 500);
|
||||||
|
this.startTextBox11.Name = "startTextBox11";
|
||||||
|
this.startTextBox11.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox11.TabIndex = 43;
|
||||||
|
this.startTextBox11.Visible = false;
|
||||||
|
this.startTextBox11.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox11_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox11
|
||||||
|
//
|
||||||
|
this.endTextBox11.Enabled = false;
|
||||||
|
this.endTextBox11.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox11.Location = new System.Drawing.Point(367, 500);
|
||||||
|
this.endTextBox11.Name = "endTextBox11";
|
||||||
|
this.endTextBox11.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox11.TabIndex = 44;
|
||||||
|
this.endTextBox11.Visible = false;
|
||||||
|
this.endTextBox11.TextChanged += new System.EventHandler(this.endTextBox11_TextChanged);
|
||||||
|
this.endTextBox11.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox11_KeyPress);
|
||||||
|
//
|
||||||
|
// label11
|
||||||
|
//
|
||||||
|
this.label11.AutoSize = true;
|
||||||
|
this.label11.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label11.Location = new System.Drawing.Point(23, 503);
|
||||||
|
this.label11.Name = "label11";
|
||||||
|
this.label11.Size = new System.Drawing.Size(157, 23);
|
||||||
|
this.label11.TabIndex = 42;
|
||||||
|
this.label11.Text = "Water Meter 11";
|
||||||
|
this.label11.Visible = false;
|
||||||
|
//
|
||||||
|
// exclamation12
|
||||||
|
//
|
||||||
|
this.exclamation12.AutoSize = true;
|
||||||
|
this.exclamation12.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.exclamation12.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.exclamation12.Location = new System.Drawing.Point(532, 540);
|
||||||
|
this.exclamation12.Name = "exclamation12";
|
||||||
|
this.exclamation12.Size = new System.Drawing.Size(30, 38);
|
||||||
|
this.exclamation12.TabIndex = 49;
|
||||||
|
this.exclamation12.Text = "!";
|
||||||
|
this.exclamation12.Visible = false;
|
||||||
|
//
|
||||||
|
// startTextBox12
|
||||||
|
//
|
||||||
|
this.startTextBox12.Enabled = false;
|
||||||
|
this.startTextBox12.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.startTextBox12.Location = new System.Drawing.Point(185, 544);
|
||||||
|
this.startTextBox12.Name = "startTextBox12";
|
||||||
|
this.startTextBox12.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.startTextBox12.TabIndex = 47;
|
||||||
|
this.startTextBox12.Visible = false;
|
||||||
|
this.startTextBox12.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.startTextBox12_KeyPress);
|
||||||
|
//
|
||||||
|
// endTextBox12
|
||||||
|
//
|
||||||
|
this.endTextBox12.Enabled = false;
|
||||||
|
this.endTextBox12.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.endTextBox12.Location = new System.Drawing.Point(367, 544);
|
||||||
|
this.endTextBox12.Name = "endTextBox12";
|
||||||
|
this.endTextBox12.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.endTextBox12.TabIndex = 48;
|
||||||
|
this.endTextBox12.Visible = false;
|
||||||
|
this.endTextBox12.TextChanged += new System.EventHandler(this.endTextBox12_TextChanged);
|
||||||
|
this.endTextBox12.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.endTextBox12_KeyPress);
|
||||||
|
//
|
||||||
|
// label12
|
||||||
|
//
|
||||||
|
this.label12.AutoSize = true;
|
||||||
|
this.label12.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.label12.Location = new System.Drawing.Point(23, 547);
|
||||||
|
this.label12.Name = "label12";
|
||||||
|
this.label12.Size = new System.Drawing.Size(157, 23);
|
||||||
|
this.label12.TabIndex = 46;
|
||||||
|
this.label12.Text = "Water Meter 12";
|
||||||
|
this.label12.Visible = false;
|
||||||
|
//
|
||||||
|
// TestStartEndForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.DarkGoldenrod;
|
||||||
|
this.ClientSize = new System.Drawing.Size(753, 613);
|
||||||
|
this.Controls.Add(this.exclamation12);
|
||||||
|
this.Controls.Add(this.startTextBox12);
|
||||||
|
this.Controls.Add(this.endTextBox12);
|
||||||
|
this.Controls.Add(this.label12);
|
||||||
|
this.Controls.Add(this.exclamation11);
|
||||||
|
this.Controls.Add(this.startTextBox11);
|
||||||
|
this.Controls.Add(this.endTextBox11);
|
||||||
|
this.Controls.Add(this.label11);
|
||||||
|
this.Controls.Add(this.exclamation10);
|
||||||
|
this.Controls.Add(this.startTextBox10);
|
||||||
|
this.Controls.Add(this.endTextBox10);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.exclamation9);
|
||||||
|
this.Controls.Add(this.startTextBox9);
|
||||||
|
this.Controls.Add(this.endTextBox9);
|
||||||
|
this.Controls.Add(this.label9);
|
||||||
|
this.Controls.Add(this.exclamation8);
|
||||||
|
this.Controls.Add(this.startTextBox8);
|
||||||
|
this.Controls.Add(this.endTextBox8);
|
||||||
|
this.Controls.Add(this.label8);
|
||||||
|
this.Controls.Add(this.exclamation7);
|
||||||
|
this.Controls.Add(this.startTextBox7);
|
||||||
|
this.Controls.Add(this.endTextBox7);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.exclamation6);
|
||||||
|
this.Controls.Add(this.exclamation5);
|
||||||
|
this.Controls.Add(this.startTextBox6);
|
||||||
|
this.Controls.Add(this.exclamation4);
|
||||||
|
this.Controls.Add(this.endTextBox6);
|
||||||
|
this.Controls.Add(this.label6);
|
||||||
|
this.Controls.Add(this.startTextBox5);
|
||||||
|
this.Controls.Add(this.exclamation3);
|
||||||
|
this.Controls.Add(this.endTextBox5);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
|
this.Controls.Add(this.startTextBox4);
|
||||||
|
this.Controls.Add(this.exclamation2);
|
||||||
|
this.Controls.Add(this.endTextBox4);
|
||||||
|
this.Controls.Add(this.label4);
|
||||||
|
this.Controls.Add(this.startTextBox3);
|
||||||
|
this.Controls.Add(this.exclamation1);
|
||||||
|
this.Controls.Add(this.endTextBox3);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.startTextBox2);
|
||||||
|
this.Controls.Add(this.endLabel);
|
||||||
|
this.Controls.Add(this.endTextBox2);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.startTextBox1);
|
||||||
|
this.Controls.Add(this.startLabel);
|
||||||
|
this.Controls.Add(this.endTextBox1);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.okButton);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
this.Name = "TestStartEndForm";
|
||||||
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||||
|
this.Text = "End States";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.CycleEndForm_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.TextBox endTextBox1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Button okButton;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox3;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox4;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox5;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox6;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox1;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox3;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox4;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox5;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox6;
|
||||||
|
private System.Windows.Forms.Label startLabel;
|
||||||
|
private System.Windows.Forms.Label endLabel;
|
||||||
|
private System.Windows.Forms.Label exclamation1;
|
||||||
|
private System.Windows.Forms.Label exclamation3;
|
||||||
|
private System.Windows.Forms.Label exclamation4;
|
||||||
|
private System.Windows.Forms.Label exclamation5;
|
||||||
|
private System.Windows.Forms.Label exclamation6;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox2;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox2;
|
||||||
|
private System.Windows.Forms.Label exclamation2;
|
||||||
|
private System.Windows.Forms.Label exclamation7;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox7;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox7;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.Label exclamation8;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox8;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox8;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private System.Windows.Forms.Label exclamation9;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox9;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox9;
|
||||||
|
private System.Windows.Forms.Label label9;
|
||||||
|
private System.Windows.Forms.Label exclamation10;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox10;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox10;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.Label exclamation11;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox11;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox11;
|
||||||
|
private System.Windows.Forms.Label label11;
|
||||||
|
private System.Windows.Forms.Label exclamation12;
|
||||||
|
private System.Windows.Forms.TextBox startTextBox12;
|
||||||
|
private System.Windows.Forms.TextBox endTextBox12;
|
||||||
|
private System.Windows.Forms.Label label12;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
+794
@@ -0,0 +1,794 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
partial class CycleBeginningForm
|
||||||
|
{
|
||||||
|
/// <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()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CycleBeginningForm));
|
||||||
|
this.okButton = new System.Windows.Forms.Button();
|
||||||
|
this.orderGroupBox = new System.Windows.Forms.GroupBox();
|
||||||
|
this.orderComboBox = new System.Windows.Forms.ComboBox();
|
||||||
|
this.clearButton = new System.Windows.Forms.Button();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox3 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox3 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox4 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox4 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox5 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox5 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox6 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox6 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox7 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox7 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox8 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox8 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox9 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox9 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label9 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox10 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox10 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox11 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox11 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label11 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox12 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox12 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label12 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox13 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox13 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label13 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox14 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox14 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label14 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox15 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox15 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label15 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox16 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox16 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label16 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox17 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox17 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label17 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox18 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox18 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label18 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox19 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox19 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label19 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox20 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox20 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label20 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox21 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox21 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label21 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox22 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox22 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label22 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox23 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox23 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label23 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBox24 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.comboBox24 = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label24 = new System.Windows.Forms.Label();
|
||||||
|
this.orderGroupBox.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// okButton
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.okButton, "okButton");
|
||||||
|
this.okButton.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.okButton.Name = "okButton";
|
||||||
|
this.okButton.UseVisualStyleBackColor = true;
|
||||||
|
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||||
|
//
|
||||||
|
// orderGroupBox
|
||||||
|
//
|
||||||
|
this.orderGroupBox.Controls.Add(this.orderComboBox);
|
||||||
|
resources.ApplyResources(this.orderGroupBox, "orderGroupBox");
|
||||||
|
this.orderGroupBox.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.orderGroupBox.Name = "orderGroupBox";
|
||||||
|
this.orderGroupBox.TabStop = false;
|
||||||
|
//
|
||||||
|
// orderComboBox
|
||||||
|
//
|
||||||
|
this.orderComboBox.FormattingEnabled = true;
|
||||||
|
resources.ApplyResources(this.orderComboBox, "orderComboBox");
|
||||||
|
this.orderComboBox.Name = "orderComboBox";
|
||||||
|
//
|
||||||
|
// clearButton
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.clearButton, "clearButton");
|
||||||
|
this.clearButton.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.clearButton.Name = "clearButton";
|
||||||
|
this.clearButton.UseVisualStyleBackColor = true;
|
||||||
|
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label1, "label1");
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
//
|
||||||
|
// comboBox1
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox1, "comboBox1");
|
||||||
|
this.comboBox1.FormattingEnabled = true;
|
||||||
|
this.comboBox1.Name = "comboBox1";
|
||||||
|
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
||||||
|
this.comboBox1.TextChanged += new System.EventHandler(this.comboBox1_TextChanged);
|
||||||
|
this.comboBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox1_KeyPress);
|
||||||
|
//
|
||||||
|
// checkBox1
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox1, "checkBox1");
|
||||||
|
this.checkBox1.Name = "checkBox1";
|
||||||
|
this.checkBox1.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// checkBox2
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox2, "checkBox2");
|
||||||
|
this.checkBox2.Name = "checkBox2";
|
||||||
|
this.checkBox2.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox2
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox2, "comboBox2");
|
||||||
|
this.comboBox2.FormattingEnabled = true;
|
||||||
|
this.comboBox2.Name = "comboBox2";
|
||||||
|
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
|
||||||
|
this.comboBox2.TextChanged += new System.EventHandler(this.comboBox2_TextChanged);
|
||||||
|
this.comboBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox2_KeyPress);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label2, "label2");
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
//
|
||||||
|
// checkBox3
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox3, "checkBox3");
|
||||||
|
this.checkBox3.Name = "checkBox3";
|
||||||
|
this.checkBox3.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox3
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox3, "comboBox3");
|
||||||
|
this.comboBox3.FormattingEnabled = true;
|
||||||
|
this.comboBox3.Name = "comboBox3";
|
||||||
|
this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged);
|
||||||
|
this.comboBox3.TextChanged += new System.EventHandler(this.comboBox3_TextChanged);
|
||||||
|
this.comboBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox3_KeyPress);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label3, "label3");
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
//
|
||||||
|
// checkBox4
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox4, "checkBox4");
|
||||||
|
this.checkBox4.Name = "checkBox4";
|
||||||
|
this.checkBox4.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox4
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox4, "comboBox4");
|
||||||
|
this.comboBox4.FormattingEnabled = true;
|
||||||
|
this.comboBox4.Name = "comboBox4";
|
||||||
|
this.comboBox4.SelectedIndexChanged += new System.EventHandler(this.comboBox4_SelectedIndexChanged);
|
||||||
|
this.comboBox4.TextChanged += new System.EventHandler(this.comboBox4_TextChanged);
|
||||||
|
this.comboBox4.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox4_KeyPress);
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label4, "label4");
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
//
|
||||||
|
// checkBox5
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox5, "checkBox5");
|
||||||
|
this.checkBox5.Name = "checkBox5";
|
||||||
|
this.checkBox5.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox5
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox5, "comboBox5");
|
||||||
|
this.comboBox5.FormattingEnabled = true;
|
||||||
|
this.comboBox5.Name = "comboBox5";
|
||||||
|
this.comboBox5.SelectedIndexChanged += new System.EventHandler(this.comboBox5_SelectedIndexChanged);
|
||||||
|
this.comboBox5.TextChanged += new System.EventHandler(this.comboBox5_TextChanged);
|
||||||
|
this.comboBox5.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox5_KeyPress);
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label5, "label5");
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
//
|
||||||
|
// checkBox6
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox6, "checkBox6");
|
||||||
|
this.checkBox6.Name = "checkBox6";
|
||||||
|
this.checkBox6.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox6
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox6, "comboBox6");
|
||||||
|
this.comboBox6.FormattingEnabled = true;
|
||||||
|
this.comboBox6.Name = "comboBox6";
|
||||||
|
this.comboBox6.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
|
||||||
|
this.comboBox6.TextChanged += new System.EventHandler(this.comboBox6_TextChanged);
|
||||||
|
this.comboBox6.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox6_KeyPress);
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label6, "label6");
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
//
|
||||||
|
// checkBox7
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox7, "checkBox7");
|
||||||
|
this.checkBox7.Name = "checkBox7";
|
||||||
|
this.checkBox7.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox7
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox7, "comboBox7");
|
||||||
|
this.comboBox7.FormattingEnabled = true;
|
||||||
|
this.comboBox7.Name = "comboBox7";
|
||||||
|
this.comboBox7.SelectedIndexChanged += new System.EventHandler(this.comboBox7_SelectedIndexChanged);
|
||||||
|
this.comboBox7.TextChanged += new System.EventHandler(this.comboBox7_TextChanged);
|
||||||
|
this.comboBox7.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox7_KeyPress);
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label7, "label7");
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
//
|
||||||
|
// checkBox8
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox8, "checkBox8");
|
||||||
|
this.checkBox8.Name = "checkBox8";
|
||||||
|
this.checkBox8.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox8
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox8, "comboBox8");
|
||||||
|
this.comboBox8.FormattingEnabled = true;
|
||||||
|
this.comboBox8.Name = "comboBox8";
|
||||||
|
this.comboBox8.SelectedIndexChanged += new System.EventHandler(this.comboBox8_SelectedIndexChanged);
|
||||||
|
this.comboBox8.TextChanged += new System.EventHandler(this.comboBox8_TextChanged);
|
||||||
|
this.comboBox8.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox8_KeyPress);
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label8, "label8");
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
//
|
||||||
|
// checkBox9
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox9, "checkBox9");
|
||||||
|
this.checkBox9.Name = "checkBox9";
|
||||||
|
this.checkBox9.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox9
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox9, "comboBox9");
|
||||||
|
this.comboBox9.FormattingEnabled = true;
|
||||||
|
this.comboBox9.Name = "comboBox9";
|
||||||
|
this.comboBox9.SelectedIndexChanged += new System.EventHandler(this.comboBox9_SelectedIndexChanged);
|
||||||
|
this.comboBox9.TextChanged += new System.EventHandler(this.comboBox9_TextChanged);
|
||||||
|
this.comboBox9.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox9_KeyPress);
|
||||||
|
//
|
||||||
|
// label9
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label9, "label9");
|
||||||
|
this.label9.Name = "label9";
|
||||||
|
//
|
||||||
|
// checkBox10
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox10, "checkBox10");
|
||||||
|
this.checkBox10.Name = "checkBox10";
|
||||||
|
this.checkBox10.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox10
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox10, "comboBox10");
|
||||||
|
this.comboBox10.FormattingEnabled = true;
|
||||||
|
this.comboBox10.Name = "comboBox10";
|
||||||
|
this.comboBox10.SelectedIndexChanged += new System.EventHandler(this.comboBox10_SelectedIndexChanged);
|
||||||
|
this.comboBox10.TextChanged += new System.EventHandler(this.comboBox10_TextChanged);
|
||||||
|
this.comboBox10.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox10_KeyPress);
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label10, "label10");
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
//
|
||||||
|
// checkBox11
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox11, "checkBox11");
|
||||||
|
this.checkBox11.Name = "checkBox11";
|
||||||
|
this.checkBox11.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox11
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox11, "comboBox11");
|
||||||
|
this.comboBox11.FormattingEnabled = true;
|
||||||
|
this.comboBox11.Name = "comboBox11";
|
||||||
|
this.comboBox11.SelectedIndexChanged += new System.EventHandler(this.comboBox11_SelectedIndexChanged);
|
||||||
|
this.comboBox11.TextChanged += new System.EventHandler(this.comboBox11_TextChanged);
|
||||||
|
this.comboBox11.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox11_KeyPress);
|
||||||
|
//
|
||||||
|
// label11
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label11, "label11");
|
||||||
|
this.label11.Name = "label11";
|
||||||
|
//
|
||||||
|
// checkBox12
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox12, "checkBox12");
|
||||||
|
this.checkBox12.Name = "checkBox12";
|
||||||
|
this.checkBox12.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox12
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox12, "comboBox12");
|
||||||
|
this.comboBox12.FormattingEnabled = true;
|
||||||
|
this.comboBox12.Name = "comboBox12";
|
||||||
|
this.comboBox12.SelectedIndexChanged += new System.EventHandler(this.comboBox12_SelectedIndexChanged);
|
||||||
|
this.comboBox12.TextChanged += new System.EventHandler(this.comboBox12_TextChanged);
|
||||||
|
this.comboBox12.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox12_KeyPress);
|
||||||
|
//
|
||||||
|
// label12
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label12, "label12");
|
||||||
|
this.label12.Name = "label12";
|
||||||
|
//
|
||||||
|
// checkBox13
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox13, "checkBox13");
|
||||||
|
this.checkBox13.Name = "checkBox13";
|
||||||
|
this.checkBox13.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox13
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox13, "comboBox13");
|
||||||
|
this.comboBox13.FormattingEnabled = true;
|
||||||
|
this.comboBox13.Name = "comboBox13";
|
||||||
|
this.comboBox13.SelectedIndexChanged += new System.EventHandler(this.comboBox13_SelectedIndexChanged);
|
||||||
|
this.comboBox13.TextChanged += new System.EventHandler(this.comboBox13_TextChanged);
|
||||||
|
this.comboBox13.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox13_KeyPress);
|
||||||
|
//
|
||||||
|
// label13
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label13, "label13");
|
||||||
|
this.label13.Name = "label13";
|
||||||
|
//
|
||||||
|
// checkBox14
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox14, "checkBox14");
|
||||||
|
this.checkBox14.Name = "checkBox14";
|
||||||
|
this.checkBox14.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox14
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox14, "comboBox14");
|
||||||
|
this.comboBox14.FormattingEnabled = true;
|
||||||
|
this.comboBox14.Name = "comboBox14";
|
||||||
|
this.comboBox14.SelectedIndexChanged += new System.EventHandler(this.comboBox14_SelectedIndexChanged);
|
||||||
|
this.comboBox14.TextChanged += new System.EventHandler(this.comboBox14_TextChanged);
|
||||||
|
this.comboBox14.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox14_KeyPress);
|
||||||
|
//
|
||||||
|
// label14
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label14, "label14");
|
||||||
|
this.label14.Name = "label14";
|
||||||
|
//
|
||||||
|
// checkBox15
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox15, "checkBox15");
|
||||||
|
this.checkBox15.Name = "checkBox15";
|
||||||
|
this.checkBox15.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox15
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox15, "comboBox15");
|
||||||
|
this.comboBox15.FormattingEnabled = true;
|
||||||
|
this.comboBox15.Name = "comboBox15";
|
||||||
|
this.comboBox15.SelectedIndexChanged += new System.EventHandler(this.comboBox15_SelectedIndexChanged);
|
||||||
|
this.comboBox15.TextChanged += new System.EventHandler(this.comboBox15_TextChanged);
|
||||||
|
this.comboBox15.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox15_KeyPress);
|
||||||
|
//
|
||||||
|
// label15
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label15, "label15");
|
||||||
|
this.label15.Name = "label15";
|
||||||
|
//
|
||||||
|
// checkBox16
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox16, "checkBox16");
|
||||||
|
this.checkBox16.Name = "checkBox16";
|
||||||
|
this.checkBox16.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox16
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox16, "comboBox16");
|
||||||
|
this.comboBox16.FormattingEnabled = true;
|
||||||
|
this.comboBox16.Name = "comboBox16";
|
||||||
|
this.comboBox16.SelectedIndexChanged += new System.EventHandler(this.comboBox16_SelectedIndexChanged);
|
||||||
|
this.comboBox16.TextChanged += new System.EventHandler(this.comboBox16_TextChanged);
|
||||||
|
this.comboBox16.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox16_KeyPress);
|
||||||
|
//
|
||||||
|
// label16
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label16, "label16");
|
||||||
|
this.label16.Name = "label16";
|
||||||
|
//
|
||||||
|
// checkBox17
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox17, "checkBox17");
|
||||||
|
this.checkBox17.Name = "checkBox17";
|
||||||
|
this.checkBox17.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox17
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox17, "comboBox17");
|
||||||
|
this.comboBox17.FormattingEnabled = true;
|
||||||
|
this.comboBox17.Name = "comboBox17";
|
||||||
|
this.comboBox17.SelectedIndexChanged += new System.EventHandler(this.comboBox17_SelectedIndexChanged);
|
||||||
|
this.comboBox17.TextChanged += new System.EventHandler(this.comboBox17_TextChanged);
|
||||||
|
this.comboBox17.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox17_KeyPress);
|
||||||
|
//
|
||||||
|
// label17
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label17, "label17");
|
||||||
|
this.label17.Name = "label17";
|
||||||
|
//
|
||||||
|
// checkBox18
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox18, "checkBox18");
|
||||||
|
this.checkBox18.Name = "checkBox18";
|
||||||
|
this.checkBox18.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox18
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox18, "comboBox18");
|
||||||
|
this.comboBox18.FormattingEnabled = true;
|
||||||
|
this.comboBox18.Name = "comboBox18";
|
||||||
|
this.comboBox18.SelectedIndexChanged += new System.EventHandler(this.comboBox18_SelectedIndexChanged);
|
||||||
|
this.comboBox18.TextChanged += new System.EventHandler(this.comboBox18_TextChanged);
|
||||||
|
this.comboBox18.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox18_KeyPress);
|
||||||
|
//
|
||||||
|
// label18
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label18, "label18");
|
||||||
|
this.label18.Name = "label18";
|
||||||
|
//
|
||||||
|
// checkBox19
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox19, "checkBox19");
|
||||||
|
this.checkBox19.Name = "checkBox19";
|
||||||
|
this.checkBox19.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox19
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox19, "comboBox19");
|
||||||
|
this.comboBox19.FormattingEnabled = true;
|
||||||
|
this.comboBox19.Name = "comboBox19";
|
||||||
|
this.comboBox19.SelectedIndexChanged += new System.EventHandler(this.comboBox19_SelectedIndexChanged);
|
||||||
|
this.comboBox19.TextChanged += new System.EventHandler(this.comboBox19_TextChanged);
|
||||||
|
this.comboBox19.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox19_KeyPress);
|
||||||
|
//
|
||||||
|
// label19
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label19, "label19");
|
||||||
|
this.label19.Name = "label19";
|
||||||
|
//
|
||||||
|
// checkBox20
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox20, "checkBox20");
|
||||||
|
this.checkBox20.Name = "checkBox20";
|
||||||
|
this.checkBox20.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox20
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox20, "comboBox20");
|
||||||
|
this.comboBox20.FormattingEnabled = true;
|
||||||
|
this.comboBox20.Name = "comboBox20";
|
||||||
|
this.comboBox20.SelectedIndexChanged += new System.EventHandler(this.comboBox20_SelectedIndexChanged);
|
||||||
|
this.comboBox20.TextChanged += new System.EventHandler(this.comboBox20_TextChanged);
|
||||||
|
this.comboBox20.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox20_KeyPress);
|
||||||
|
//
|
||||||
|
// label20
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label20, "label20");
|
||||||
|
this.label20.Name = "label20";
|
||||||
|
//
|
||||||
|
// checkBox21
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox21, "checkBox21");
|
||||||
|
this.checkBox21.Name = "checkBox21";
|
||||||
|
this.checkBox21.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox21
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox21, "comboBox21");
|
||||||
|
this.comboBox21.FormattingEnabled = true;
|
||||||
|
this.comboBox21.Name = "comboBox21";
|
||||||
|
this.comboBox21.SelectedIndexChanged += new System.EventHandler(this.comboBox21_SelectedIndexChanged);
|
||||||
|
this.comboBox21.TextChanged += new System.EventHandler(this.comboBox21_TextChanged);
|
||||||
|
this.comboBox21.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox21_KeyPress);
|
||||||
|
//
|
||||||
|
// label21
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label21, "label21");
|
||||||
|
this.label21.Name = "label21";
|
||||||
|
//
|
||||||
|
// checkBox22
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox22, "checkBox22");
|
||||||
|
this.checkBox22.Name = "checkBox22";
|
||||||
|
this.checkBox22.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox22
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox22, "comboBox22");
|
||||||
|
this.comboBox22.FormattingEnabled = true;
|
||||||
|
this.comboBox22.Name = "comboBox22";
|
||||||
|
this.comboBox22.SelectedIndexChanged += new System.EventHandler(this.comboBox22_SelectedIndexChanged);
|
||||||
|
this.comboBox22.TextChanged += new System.EventHandler(this.comboBox22_TextChanged);
|
||||||
|
this.comboBox22.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox22_KeyPress);
|
||||||
|
//
|
||||||
|
// label22
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label22, "label22");
|
||||||
|
this.label22.Name = "label22";
|
||||||
|
//
|
||||||
|
// checkBox23
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox23, "checkBox23");
|
||||||
|
this.checkBox23.Name = "checkBox23";
|
||||||
|
this.checkBox23.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox23
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox23, "comboBox23");
|
||||||
|
this.comboBox23.FormattingEnabled = true;
|
||||||
|
this.comboBox23.Name = "comboBox23";
|
||||||
|
this.comboBox23.SelectedIndexChanged += new System.EventHandler(this.comboBox23_SelectedIndexChanged);
|
||||||
|
this.comboBox23.TextChanged += new System.EventHandler(this.comboBox23_TextChanged);
|
||||||
|
this.comboBox23.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox23_KeyPress);
|
||||||
|
//
|
||||||
|
// label23
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label23, "label23");
|
||||||
|
this.label23.Name = "label23";
|
||||||
|
//
|
||||||
|
// checkBox24
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.checkBox24, "checkBox24");
|
||||||
|
this.checkBox24.Name = "checkBox24";
|
||||||
|
this.checkBox24.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// comboBox24
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.comboBox24, "comboBox24");
|
||||||
|
this.comboBox24.FormattingEnabled = true;
|
||||||
|
this.comboBox24.Name = "comboBox24";
|
||||||
|
this.comboBox24.SelectedIndexChanged += new System.EventHandler(this.comboBox24_SelectedIndexChanged);
|
||||||
|
this.comboBox24.TextChanged += new System.EventHandler(this.comboBox24_TextChanged);
|
||||||
|
this.comboBox24.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBox24_KeyPress);
|
||||||
|
//
|
||||||
|
// label24
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label24, "label24");
|
||||||
|
this.label24.Name = "label24";
|
||||||
|
//
|
||||||
|
// CycleBeginningForm
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this, "$this");
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.DarkGoldenrod;
|
||||||
|
this.Controls.Add(this.checkBox24);
|
||||||
|
this.Controls.Add(this.comboBox24);
|
||||||
|
this.Controls.Add(this.label24);
|
||||||
|
this.Controls.Add(this.checkBox23);
|
||||||
|
this.Controls.Add(this.comboBox23);
|
||||||
|
this.Controls.Add(this.label23);
|
||||||
|
this.Controls.Add(this.checkBox22);
|
||||||
|
this.Controls.Add(this.comboBox22);
|
||||||
|
this.Controls.Add(this.label22);
|
||||||
|
this.Controls.Add(this.checkBox21);
|
||||||
|
this.Controls.Add(this.comboBox21);
|
||||||
|
this.Controls.Add(this.label21);
|
||||||
|
this.Controls.Add(this.checkBox20);
|
||||||
|
this.Controls.Add(this.comboBox20);
|
||||||
|
this.Controls.Add(this.label20);
|
||||||
|
this.Controls.Add(this.checkBox19);
|
||||||
|
this.Controls.Add(this.comboBox19);
|
||||||
|
this.Controls.Add(this.label19);
|
||||||
|
this.Controls.Add(this.checkBox18);
|
||||||
|
this.Controls.Add(this.comboBox18);
|
||||||
|
this.Controls.Add(this.label18);
|
||||||
|
this.Controls.Add(this.checkBox17);
|
||||||
|
this.Controls.Add(this.comboBox17);
|
||||||
|
this.Controls.Add(this.label17);
|
||||||
|
this.Controls.Add(this.checkBox16);
|
||||||
|
this.Controls.Add(this.comboBox16);
|
||||||
|
this.Controls.Add(this.label16);
|
||||||
|
this.Controls.Add(this.checkBox15);
|
||||||
|
this.Controls.Add(this.comboBox15);
|
||||||
|
this.Controls.Add(this.label15);
|
||||||
|
this.Controls.Add(this.checkBox14);
|
||||||
|
this.Controls.Add(this.comboBox14);
|
||||||
|
this.Controls.Add(this.label14);
|
||||||
|
this.Controls.Add(this.checkBox13);
|
||||||
|
this.Controls.Add(this.comboBox13);
|
||||||
|
this.Controls.Add(this.label13);
|
||||||
|
this.Controls.Add(this.checkBox12);
|
||||||
|
this.Controls.Add(this.comboBox12);
|
||||||
|
this.Controls.Add(this.label12);
|
||||||
|
this.Controls.Add(this.checkBox11);
|
||||||
|
this.Controls.Add(this.comboBox11);
|
||||||
|
this.Controls.Add(this.label11);
|
||||||
|
this.Controls.Add(this.checkBox10);
|
||||||
|
this.Controls.Add(this.comboBox10);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.checkBox9);
|
||||||
|
this.Controls.Add(this.comboBox9);
|
||||||
|
this.Controls.Add(this.label9);
|
||||||
|
this.Controls.Add(this.checkBox8);
|
||||||
|
this.Controls.Add(this.comboBox8);
|
||||||
|
this.Controls.Add(this.label8);
|
||||||
|
this.Controls.Add(this.checkBox7);
|
||||||
|
this.Controls.Add(this.comboBox7);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.checkBox6);
|
||||||
|
this.Controls.Add(this.comboBox6);
|
||||||
|
this.Controls.Add(this.label6);
|
||||||
|
this.Controls.Add(this.checkBox5);
|
||||||
|
this.Controls.Add(this.comboBox5);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
|
this.Controls.Add(this.checkBox4);
|
||||||
|
this.Controls.Add(this.comboBox4);
|
||||||
|
this.Controls.Add(this.label4);
|
||||||
|
this.Controls.Add(this.checkBox3);
|
||||||
|
this.Controls.Add(this.comboBox3);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.checkBox2);
|
||||||
|
this.Controls.Add(this.comboBox2);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.checkBox1);
|
||||||
|
this.Controls.Add(this.comboBox1);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.clearButton);
|
||||||
|
this.Controls.Add(this.orderGroupBox);
|
||||||
|
this.Controls.Add(this.okButton);
|
||||||
|
this.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
this.Name = "CycleBeginningForm";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.CycleBeginningForm_Load);
|
||||||
|
this.orderGroupBox.ResumeLayout(false);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button okButton;
|
||||||
|
private System.Windows.Forms.GroupBox orderGroupBox;
|
||||||
|
private System.Windows.Forms.ComboBox orderComboBox;
|
||||||
|
private System.Windows.Forms.Button clearButton;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox1;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox1;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox2;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox2;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox3;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox3;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox4;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox4;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox5;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox5;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox6;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox6;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox7;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox7;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox8;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox8;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox9;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox9;
|
||||||
|
private System.Windows.Forms.Label label9;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox10;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox10;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox11;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox11;
|
||||||
|
private System.Windows.Forms.Label label11;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox12;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox12;
|
||||||
|
private System.Windows.Forms.Label label12;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox13;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox13;
|
||||||
|
private System.Windows.Forms.Label label13;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox14;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox14;
|
||||||
|
private System.Windows.Forms.Label label14;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox15;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox15;
|
||||||
|
private System.Windows.Forms.Label label15;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox16;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox16;
|
||||||
|
private System.Windows.Forms.Label label16;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox17;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox17;
|
||||||
|
private System.Windows.Forms.Label label17;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox18;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox18;
|
||||||
|
private System.Windows.Forms.Label label18;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox19;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox19;
|
||||||
|
private System.Windows.Forms.Label label19;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox20;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox20;
|
||||||
|
private System.Windows.Forms.Label label20;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox21;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox21;
|
||||||
|
private System.Windows.Forms.Label label21;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox22;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox22;
|
||||||
|
private System.Windows.Forms.Label label22;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox23;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox23;
|
||||||
|
private System.Windows.Forms.Label label23;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox24;
|
||||||
|
private System.Windows.Forms.ComboBox comboBox24;
|
||||||
|
private System.Windows.Forms.Label label24;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,493 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
public partial class CycleBeginningForm : Form, GenericDevices.IHasCompleted
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(CycleBeginningForm));
|
||||||
|
|
||||||
|
/// <summary> Number of water meters </summary>
|
||||||
|
public readonly int WaterMetersCount;
|
||||||
|
|
||||||
|
/// To be retrieved after the form is closed
|
||||||
|
public string PurchaseOrder;
|
||||||
|
public string[] SNText;
|
||||||
|
public bool[] Disabled;
|
||||||
|
|
||||||
|
/// Set to 'true' when the form closes
|
||||||
|
public bool Completed { get { return completed; } }
|
||||||
|
bool completed;
|
||||||
|
|
||||||
|
/// <summary> Number of text boxes for serial numbers </summary>
|
||||||
|
int textBoxesCount;
|
||||||
|
Label[] labels;
|
||||||
|
ComboBox[] comboBoxes;
|
||||||
|
CheckBox[] checkBoxes;
|
||||||
|
IList<ComboBox> enabledComboBoxes;
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary> Parameterless constructor for common functionality </summary>
|
||||||
|
public CycleBeginningForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
textBoxesCount = 24;
|
||||||
|
labels = new Label[]
|
||||||
|
{
|
||||||
|
label1, label2, label3, label4, label5, label6, label7, label8, label9, label10,
|
||||||
|
label11, label12, label13, label14, label15, label16, label17, label18, label19, label20,
|
||||||
|
label21, label22, label23, label24,
|
||||||
|
};
|
||||||
|
comboBoxes = new ComboBox[]
|
||||||
|
{
|
||||||
|
comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6,
|
||||||
|
comboBox7, comboBox8, comboBox9, comboBox10, comboBox11, comboBox12,
|
||||||
|
comboBox13, comboBox14, comboBox15, comboBox16, comboBox17, comboBox18,
|
||||||
|
comboBox19, comboBox20, comboBox21, comboBox22, comboBox23, comboBox24,
|
||||||
|
};
|
||||||
|
checkBoxes = new CheckBox[]
|
||||||
|
{
|
||||||
|
checkBox1, checkBox2, checkBox3, checkBox4, checkBox5, checkBox6,
|
||||||
|
checkBox7, checkBox8, checkBox9, checkBox10, checkBox11, checkBox12,
|
||||||
|
checkBox13, checkBox14, checkBox15, checkBox16, checkBox17, checkBox18,
|
||||||
|
checkBox19, checkBox20, checkBox21, checkBox22, checkBox23, checkBox24,
|
||||||
|
};
|
||||||
|
enabledComboBoxes = new List<ComboBox>();
|
||||||
|
|
||||||
|
completed = false;
|
||||||
|
StartForceCloseHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of text boxes for serial numbers</param>
|
||||||
|
public CycleBeginningForm(int waterMetersCount)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
SNText = new string[WaterMetersCount];
|
||||||
|
Disabled = new bool[WaterMetersCount];
|
||||||
|
|
||||||
|
ShuffleTextBoxes(Program.WMsCount, Program.LineSize);
|
||||||
|
|
||||||
|
//Height = 147 + WaterMetersCount * 90;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Make sure the layout of labels/text boxes on the screen
|
||||||
|
/// corresponds to the layout of watermeters of the test bench.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="wmsCount">Number of watermeters</param>
|
||||||
|
/// <param name="lineSize">Number of watermeters in one line</param>
|
||||||
|
void ShuffleTextBoxes(int wmsCount, int lineSize)
|
||||||
|
{
|
||||||
|
if (wmsCount < textBoxesCount && lineSize > 0)
|
||||||
|
{
|
||||||
|
int nrLines = (wmsCount + lineSize - 1) / lineSize;
|
||||||
|
int gap = (textBoxesCount - wmsCount) / nrLines;
|
||||||
|
|
||||||
|
int dest = 0;
|
||||||
|
for (int l = 0; l < nrLines; l++)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < lineSize; i++)
|
||||||
|
{
|
||||||
|
labels[dest] = labels[l * lineSize + l * gap + i];
|
||||||
|
comboBoxes[dest] = comboBoxes[l * lineSize + l * gap + i];
|
||||||
|
checkBoxes[dest] = checkBoxes[l * lineSize + l * gap + i];
|
||||||
|
dest++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
textBoxesCount = wmsCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CycleBeginningForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
|
||||||
|
PrepareOrderCombo(orderComboBox);
|
||||||
|
|
||||||
|
for (int i = 0; i < textBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == textBoxesCount)
|
||||||
|
{
|
||||||
|
comboBoxes[i].Items.Add(Program.LocalSettings.LastSNTexts[i]);
|
||||||
|
}
|
||||||
|
labels[i].Visible = comboBoxes[i].Visible = checkBoxes[i].Visible = true;
|
||||||
|
enabledComboBoxes.Add(comboBoxes[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
Text = Strings.Data;
|
||||||
|
orderGroupBox.Text = Strings.Purchase_Order;
|
||||||
|
for (int i = 0; i < textBoxesCount; i++)
|
||||||
|
{
|
||||||
|
labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString();
|
||||||
|
}
|
||||||
|
okButton.Text = Strings.OkBtnText;
|
||||||
|
clearButton.Text = Strings.ClearBtnText;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Load Purchase order combo box items from the LocalSettings PurchaseOrderHistory array
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="orderComboBox">Puchase order ComboBox</param>
|
||||||
|
void PrepareOrderCombo(ComboBox orderComboBox)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Program.LocalSettings.PurchaseOrderHistoryCount; i++)
|
||||||
|
{
|
||||||
|
orderComboBox.Items.Add(Program.LocalSettings.PurchaseOrderHistory[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (orderComboBox.Items.Count > 0)
|
||||||
|
{
|
||||||
|
orderComboBox.Text = orderComboBox.Items[0].ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void okButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PurchaseOrder = orderComboBox.Text;
|
||||||
|
Program.LocalSettings.UpdateHistory(orderComboBox.Text,
|
||||||
|
ref Program.LocalSettings.PurchaseOrderHistory
|
||||||
|
#if FUZHOU150 || FUZHOU300
|
||||||
|
, 20
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
|
Program.LocalSettings.LastSNTexts = SNText;
|
||||||
|
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, textBoxesCount); i++)
|
||||||
|
{
|
||||||
|
SNText[i] = comboBoxes[i].Text;
|
||||||
|
Disabled[i] = !checkBoxes[i].Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
completed = true;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When one combo box is updated using drop-down menu, all combo boxes
|
||||||
|
/// are updated by this function.
|
||||||
|
/// </summary>
|
||||||
|
private void UpdateAllCombos()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, textBoxesCount); i++)
|
||||||
|
{
|
||||||
|
comboBoxes[i].Text = Program.LocalSettings.LastSNTexts[i];
|
||||||
|
checkBoxes[i].Checked = !string.IsNullOrEmpty(comboBoxes[i].Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void clearButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, textBoxesCount); i++)
|
||||||
|
{
|
||||||
|
comboBoxes[i].Text = string.Empty;
|
||||||
|
checkBoxes[i].Checked = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void comboBox1_TextChanged(object sender, EventArgs e) { checkBox1.Checked = true; }
|
||||||
|
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox1.Text.Equals(comboBox1.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox2_TextChanged(object sender, EventArgs e) { checkBox2.Checked = true; }
|
||||||
|
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox2.Text.Equals(comboBox2.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox3_TextChanged(object sender, EventArgs e) { checkBox3.Checked = true; }
|
||||||
|
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox3.Text.Equals(comboBox3.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox4_TextChanged(object sender, EventArgs e) { checkBox4.Checked = true; }
|
||||||
|
private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox4.Text.Equals(comboBox4.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox5_TextChanged(object sender, EventArgs e) { checkBox5.Checked = true; }
|
||||||
|
private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox5.Text.Equals(comboBox5.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox6_TextChanged(object sender, EventArgs e) { checkBox6.Checked = true; }
|
||||||
|
private void comboBox6_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox6.Text.Equals(comboBox6.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox7_TextChanged(object sender, EventArgs e) { checkBox7.Checked = true; }
|
||||||
|
private void comboBox7_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox7.Text.Equals(comboBox7.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox8_TextChanged(object sender, EventArgs e) { checkBox8.Checked = true; }
|
||||||
|
private void comboBox8_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox8.Text.Equals(comboBox8.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox9_TextChanged(object sender, EventArgs e) { checkBox9.Checked = true; }
|
||||||
|
private void comboBox9_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox9.Text.Equals(comboBox9.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox10_TextChanged(object sender, EventArgs e) { checkBox10.Checked = true; }
|
||||||
|
private void comboBox10_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox10.Text.Equals(comboBox10.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox11_TextChanged(object sender, EventArgs e) { checkBox11.Checked = true; }
|
||||||
|
private void comboBox11_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox11.Text.Equals(comboBox11.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox12_TextChanged(object sender, EventArgs e) { checkBox12.Checked = true; }
|
||||||
|
private void comboBox12_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox12.Text.Equals(comboBox12.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox13_TextChanged(object sender, EventArgs e) { checkBox13.Checked = true; }
|
||||||
|
private void comboBox13_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox13.Text.Equals(comboBox13.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox14_TextChanged(object sender, EventArgs e) { checkBox14.Checked = true; }
|
||||||
|
private void comboBox14_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox14.Text.Equals(comboBox14.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox15_TextChanged(object sender, EventArgs e) { checkBox15.Checked = true; }
|
||||||
|
private void comboBox15_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox15.Text.Equals(comboBox15.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox16_TextChanged(object sender, EventArgs e) { checkBox16.Checked = true; }
|
||||||
|
private void comboBox16_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox16.Text.Equals(comboBox16.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox17_TextChanged(object sender, EventArgs e) { checkBox17.Checked = true; }
|
||||||
|
private void comboBox17_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox17.Text.Equals(comboBox17.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox18_TextChanged(object sender, EventArgs e) { checkBox18.Checked = true; }
|
||||||
|
private void comboBox18_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox18.Text.Equals(comboBox18.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox19_TextChanged(object sender, EventArgs e) { checkBox19.Checked = true; }
|
||||||
|
private void comboBox19_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox19.Text.Equals(comboBox19.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox20_TextChanged(object sender, EventArgs e) { checkBox20.Checked = true; }
|
||||||
|
private void comboBox20_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox20.Text.Equals(comboBox20.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox21_TextChanged(object sender, EventArgs e) { checkBox21.Checked = true; }
|
||||||
|
private void comboBox21_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox21.Text.Equals(comboBox21.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox22_TextChanged(object sender, EventArgs e) { checkBox22.Checked = true; }
|
||||||
|
private void comboBox22_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox22.Text.Equals(comboBox22.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox23_TextChanged(object sender, EventArgs e) { checkBox23.Checked = true; }
|
||||||
|
private void comboBox23_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox23.Text.Equals(comboBox23.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox24_TextChanged(object sender, EventArgs e) { checkBox24.Checked = true; }
|
||||||
|
private void comboBox24_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Program.LocalSettings.LastSNTextsCount == WaterMetersCount)
|
||||||
|
{
|
||||||
|
if (comboBox24.Text.Equals(comboBox24.Items[0])) UpdateAllCombos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Forced close handling
|
||||||
|
|
||||||
|
public void StartForceCloseHandler()
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.CloseModelessFormHandler += delegate(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
if (InvokeRequired) { Invoke(new EventHandler<EventArgs>(OnForceClose), sender, args); }
|
||||||
|
else OnForceClose(sender, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnForceClose(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Cancel;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Process a key press within any enabled text boxe
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
/// <param name="currentFocusOwner">TextBox control which received the event</param>
|
||||||
|
private void ProcKeyPress(object sender, KeyPressEventArgs e, ComboBox currentFocusOwner)
|
||||||
|
{
|
||||||
|
if (e.KeyChar == '+')
|
||||||
|
{
|
||||||
|
/// Process '+' key ..... Form completed
|
||||||
|
okButton_Click(sender, e);
|
||||||
|
}
|
||||||
|
if (e.KeyChar == '\r')
|
||||||
|
{
|
||||||
|
/// Process <enter> key ..... Next text field
|
||||||
|
if (enabledComboBoxes.Count < 2) return; /// There is just one enabled textbox
|
||||||
|
|
||||||
|
for (int i = 0; i < enabledComboBoxes.Count; i++)
|
||||||
|
{
|
||||||
|
if (enabledComboBoxes[i] == currentFocusOwner)
|
||||||
|
{
|
||||||
|
/// Change focus to the next enabled text box
|
||||||
|
enabledComboBoxes[(i + 1) % enabledComboBoxes.Count].Focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBox1_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox1); }
|
||||||
|
private void comboBox2_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox2); }
|
||||||
|
private void comboBox3_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox3); }
|
||||||
|
private void comboBox4_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox4); }
|
||||||
|
private void comboBox5_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox5); }
|
||||||
|
private void comboBox6_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox6); }
|
||||||
|
private void comboBox7_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox7); }
|
||||||
|
private void comboBox8_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox8); }
|
||||||
|
private void comboBox9_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox9); }
|
||||||
|
private void comboBox10_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox10); }
|
||||||
|
private void comboBox11_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox11); }
|
||||||
|
private void comboBox12_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox12); }
|
||||||
|
private void comboBox13_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox13); }
|
||||||
|
private void comboBox14_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox14); }
|
||||||
|
private void comboBox15_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox15); }
|
||||||
|
private void comboBox16_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox16); }
|
||||||
|
private void comboBox17_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox17); }
|
||||||
|
private void comboBox18_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox18); }
|
||||||
|
private void comboBox19_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox19); }
|
||||||
|
private void comboBox20_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox20); }
|
||||||
|
private void comboBox21_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox21); }
|
||||||
|
private void comboBox22_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox22); }
|
||||||
|
private void comboBox23_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox23); }
|
||||||
|
private void comboBox24_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, comboBox24); }
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
+305
@@ -0,0 +1,305 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
partial class CycleEndForm
|
||||||
|
{
|
||||||
|
/// <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.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.okButton = new System.Windows.Forms.Button();
|
||||||
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox2.SuspendLayout();
|
||||||
|
this.groupBox1.SuspendLayout();
|
||||||
|
this.groupBox3.SuspendLayout();
|
||||||
|
this.groupBox4.SuspendLayout();
|
||||||
|
this.groupBox5.SuspendLayout();
|
||||||
|
this.groupBox6.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// groupBox2
|
||||||
|
//
|
||||||
|
this.groupBox2.Controls.Add(this.textBox2);
|
||||||
|
this.groupBox2.Controls.Add(this.label2);
|
||||||
|
this.groupBox2.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox2.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox2.Location = new System.Drawing.Point(25, 104);
|
||||||
|
this.groupBox2.Name = "groupBox2";
|
||||||
|
this.groupBox2.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox2.TabIndex = 2;
|
||||||
|
this.groupBox2.TabStop = false;
|
||||||
|
this.groupBox2.Text = "Wasserzähler 2";
|
||||||
|
//
|
||||||
|
// textBox2
|
||||||
|
//
|
||||||
|
this.textBox2.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox2.Name = "textBox2";
|
||||||
|
this.textBox2.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox2.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label2.TabIndex = 0;
|
||||||
|
this.label2.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Controls.Add(this.textBox1);
|
||||||
|
this.groupBox1.Controls.Add(this.label1);
|
||||||
|
this.groupBox1.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox1.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(25, 14);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox1.TabIndex = 1;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
this.groupBox1.Text = "Wasserzähler 1";
|
||||||
|
//
|
||||||
|
// textBox1
|
||||||
|
//
|
||||||
|
this.textBox1.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox1.Name = "textBox1";
|
||||||
|
this.textBox1.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox1.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// okButton
|
||||||
|
//
|
||||||
|
this.okButton.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.okButton.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.okButton.Location = new System.Drawing.Point(425, 23);
|
||||||
|
this.okButton.Name = "okButton";
|
||||||
|
this.okButton.Size = new System.Drawing.Size(98, 63);
|
||||||
|
this.okButton.TabIndex = 7;
|
||||||
|
this.okButton.Text = "OK";
|
||||||
|
this.okButton.UseVisualStyleBackColor = true;
|
||||||
|
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||||
|
//
|
||||||
|
// groupBox3
|
||||||
|
//
|
||||||
|
this.groupBox3.Controls.Add(this.textBox3);
|
||||||
|
this.groupBox3.Controls.Add(this.label3);
|
||||||
|
this.groupBox3.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox3.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox3.Location = new System.Drawing.Point(25, 194);
|
||||||
|
this.groupBox3.Name = "groupBox3";
|
||||||
|
this.groupBox3.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox3.TabIndex = 3;
|
||||||
|
this.groupBox3.TabStop = false;
|
||||||
|
this.groupBox3.Text = "Wasserzähler 3";
|
||||||
|
//
|
||||||
|
// textBox3
|
||||||
|
//
|
||||||
|
this.textBox3.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox3.Name = "textBox3";
|
||||||
|
this.textBox3.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox3.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label3.TabIndex = 0;
|
||||||
|
this.label3.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox4
|
||||||
|
//
|
||||||
|
this.groupBox4.Controls.Add(this.textBox4);
|
||||||
|
this.groupBox4.Controls.Add(this.label4);
|
||||||
|
this.groupBox4.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox4.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox4.Location = new System.Drawing.Point(25, 284);
|
||||||
|
this.groupBox4.Name = "groupBox4";
|
||||||
|
this.groupBox4.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox4.TabIndex = 4;
|
||||||
|
this.groupBox4.TabStop = false;
|
||||||
|
this.groupBox4.Text = "Wasserzähler 4";
|
||||||
|
//
|
||||||
|
// textBox4
|
||||||
|
//
|
||||||
|
this.textBox4.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox4.Name = "textBox4";
|
||||||
|
this.textBox4.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox4.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label4.TabIndex = 0;
|
||||||
|
this.label4.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox5
|
||||||
|
//
|
||||||
|
this.groupBox5.Controls.Add(this.textBox5);
|
||||||
|
this.groupBox5.Controls.Add(this.label5);
|
||||||
|
this.groupBox5.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox5.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox5.Location = new System.Drawing.Point(25, 374);
|
||||||
|
this.groupBox5.Name = "groupBox5";
|
||||||
|
this.groupBox5.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox5.TabIndex = 5;
|
||||||
|
this.groupBox5.TabStop = false;
|
||||||
|
this.groupBox5.Text = "Wasserzähler 5";
|
||||||
|
//
|
||||||
|
// textBox5
|
||||||
|
//
|
||||||
|
this.textBox5.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox5.Name = "textBox5";
|
||||||
|
this.textBox5.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox5.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label5.TabIndex = 0;
|
||||||
|
this.label5.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// groupBox6
|
||||||
|
//
|
||||||
|
this.groupBox6.Controls.Add(this.textBox6);
|
||||||
|
this.groupBox6.Controls.Add(this.label6);
|
||||||
|
this.groupBox6.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
|
this.groupBox6.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.groupBox6.Location = new System.Drawing.Point(25, 464);
|
||||||
|
this.groupBox6.Name = "groupBox6";
|
||||||
|
this.groupBox6.Size = new System.Drawing.Size(362, 81);
|
||||||
|
this.groupBox6.TabIndex = 6;
|
||||||
|
this.groupBox6.TabStop = false;
|
||||||
|
this.groupBox6.Text = "Wasserzähler 6";
|
||||||
|
//
|
||||||
|
// textBox6
|
||||||
|
//
|
||||||
|
this.textBox6.Location = new System.Drawing.Point(183, 31);
|
||||||
|
this.textBox6.Name = "textBox6";
|
||||||
|
this.textBox6.Size = new System.Drawing.Size(163, 31);
|
||||||
|
this.textBox6.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.Location = new System.Drawing.Point(18, 34);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(74, 23);
|
||||||
|
this.label6.TabIndex = 0;
|
||||||
|
this.label6.Text = "Stand:";
|
||||||
|
//
|
||||||
|
// CycleEndForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.DarkGoldenrod;
|
||||||
|
this.ClientSize = new System.Drawing.Size(559, 566);
|
||||||
|
this.Controls.Add(this.groupBox6);
|
||||||
|
this.Controls.Add(this.groupBox5);
|
||||||
|
this.Controls.Add(this.groupBox4);
|
||||||
|
this.Controls.Add(this.groupBox3);
|
||||||
|
this.Controls.Add(this.okButton);
|
||||||
|
this.Controls.Add(this.groupBox2);
|
||||||
|
this.Controls.Add(this.groupBox1);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
this.Name = "CycleEndForm";
|
||||||
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||||
|
this.Text = "Daten";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.CycleEndForm_Load);
|
||||||
|
this.groupBox2.ResumeLayout(false);
|
||||||
|
this.groupBox2.PerformLayout();
|
||||||
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
this.groupBox1.PerformLayout();
|
||||||
|
this.groupBox3.ResumeLayout(false);
|
||||||
|
this.groupBox3.PerformLayout();
|
||||||
|
this.groupBox4.ResumeLayout(false);
|
||||||
|
this.groupBox4.PerformLayout();
|
||||||
|
this.groupBox5.ResumeLayout(false);
|
||||||
|
this.groupBox5.PerformLayout();
|
||||||
|
this.groupBox6.ResumeLayout(false);
|
||||||
|
this.groupBox6.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.GroupBox groupBox2;
|
||||||
|
private System.Windows.Forms.TextBox textBox2;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.TextBox textBox1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Button okButton;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox3;
|
||||||
|
private System.Windows.Forms.TextBox textBox3;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox4;
|
||||||
|
private System.Windows.Forms.TextBox textBox4;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox5;
|
||||||
|
private System.Windows.Forms.TextBox textBox5;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox6;
|
||||||
|
private System.Windows.Forms.TextBox textBox6;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
public partial class CycleEndForm : Form, GenericDevices.IHasCompleted
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(CycleEndForm));
|
||||||
|
|
||||||
|
/// <summary> Number of text boxes for serial numbers </summary>
|
||||||
|
public readonly int WaterMetersCount;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public string[] EndStateText;
|
||||||
|
|
||||||
|
// Set to 'true' when the form closes
|
||||||
|
public bool Completed { get { return completed; } }
|
||||||
|
bool completed;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of text boxes for serial numbers</param>
|
||||||
|
public CycleEndForm(int waterMetersCount)
|
||||||
|
{
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
InitializeComponent();
|
||||||
|
EndStateText = new string[WaterMetersCount];
|
||||||
|
completed = false;
|
||||||
|
StartForceCloseHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary> Parameterless constructor for 3 watermeters </summary>
|
||||||
|
public CycleEndForm()
|
||||||
|
: this(3)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CycleEndForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
|
||||||
|
Height = 50 + 90 * WaterMetersCount;
|
||||||
|
|
||||||
|
if (WaterMetersCount < 1) groupBox1.Visible = false;
|
||||||
|
if (WaterMetersCount < 2) groupBox2.Visible = false;
|
||||||
|
if (WaterMetersCount < 3) groupBox3.Visible = false;
|
||||||
|
if (WaterMetersCount < 4) groupBox4.Visible = false;
|
||||||
|
if (WaterMetersCount < 5) groupBox5.Visible = false;
|
||||||
|
if (WaterMetersCount < 6) groupBox6.Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
Text = Strings.Data;
|
||||||
|
groupBox1.Text = Strings.Water_Meter + " 1";
|
||||||
|
groupBox2.Text = Strings.Water_Meter + " 2";
|
||||||
|
groupBox3.Text = Strings.Water_Meter + " 3";
|
||||||
|
groupBox4.Text = Strings.Water_Meter + " 4";
|
||||||
|
groupBox5.Text = Strings.Water_Meter + " 5";
|
||||||
|
groupBox6.Text = Strings.Water_Meter + " 6";
|
||||||
|
label1.Text = Strings.State;
|
||||||
|
label2.Text = Strings.State;
|
||||||
|
label3.Text = Strings.State;
|
||||||
|
label4.Text = Strings.State;
|
||||||
|
label5.Text = Strings.State;
|
||||||
|
label6.Text = Strings.State;
|
||||||
|
okButton.Text = Strings.OkBtnText;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void okButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (WaterMetersCount >= 1) EndStateText[0] = textBox1.Text;
|
||||||
|
if (WaterMetersCount >= 2) EndStateText[1] = textBox3.Text;
|
||||||
|
if (WaterMetersCount >= 3) EndStateText[2] = textBox4.Text;
|
||||||
|
if (WaterMetersCount >= 4) EndStateText[3] = textBox5.Text;
|
||||||
|
if (WaterMetersCount >= 5) EndStateText[4] = textBox6.Text;
|
||||||
|
if (WaterMetersCount >= 6) EndStateText[5] = textBox6.Text;
|
||||||
|
|
||||||
|
completed = true;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Forced close handling
|
||||||
|
|
||||||
|
public void StartForceCloseHandler()
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.CloseModelessFormHandler += delegate(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
if (InvokeRequired) { Invoke(new EventHandler<EventArgs>(OnForceClose), sender, args); }
|
||||||
|
else OnForceClose(sender, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnForceClose(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Cancel;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
@@ -0,0 +1,276 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using log4net;
|
||||||
|
using TBF.BenchControl;
|
||||||
|
using TBF.BenchControl.GenericDevices;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
public class EntryForm : ComponentBase, IOperation, IDataEntry, IHasCycleBeginForm, IHasCycleEndForm, IHasWMStatesForm
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(EntryForm));
|
||||||
|
public override string ToString() { return string.Format("DataEntry.Standard48({0})", Cfg.ToString(1)); }
|
||||||
|
|
||||||
|
readonly EntryFormCfg entryFormCfg;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Properties set by the Begin, End and WMStates form
|
||||||
|
/// </summary>
|
||||||
|
string purchaseOrder;
|
||||||
|
public string PurchaseOrder { get { return purchaseOrder; } }
|
||||||
|
|
||||||
|
string[] serialNr;
|
||||||
|
public string SerialNr(int wmNr) { return (wmNr >= 0 && wmNr < serialNr.Length) ? serialNr[wmNr] : string.Empty; }
|
||||||
|
|
||||||
|
bool[] disabled;
|
||||||
|
public bool Disabled(int wmNr) { return (wmNr >= 0 && wmNr < disabled.Length) ? disabled[wmNr] : false; }
|
||||||
|
|
||||||
|
string[] wmCycleEndState;
|
||||||
|
public string WMCycleEndState(int wmNr) { return (wmNr >= 0 && wmNr < wmCycleEndState.Length) ? wmCycleEndState[wmNr] : string.Empty; }
|
||||||
|
|
||||||
|
float[] wmStartState;
|
||||||
|
public float WMStartState(int wmNr) { return (wmNr >= 0 && wmNr < wmStartState.Length) ? wmStartState[wmNr] : 0; }
|
||||||
|
|
||||||
|
float[] wmEndState;
|
||||||
|
public float WMEndState(int wmNr) { return (wmNr >= 0 && wmNr < wmEndState.Length) ? wmEndState[wmNr] : 0; }
|
||||||
|
|
||||||
|
string[] wmStartStateStr;
|
||||||
|
|
||||||
|
|
||||||
|
System.Windows.Forms.Form modelessDlg;
|
||||||
|
|
||||||
|
float refVolume;
|
||||||
|
float errLimLo;
|
||||||
|
float errLimHi;
|
||||||
|
|
||||||
|
bool resultSaved; /// Set in Run() when results are saved
|
||||||
|
|
||||||
|
IList<IWaterMeter> waterMeters; /// Passesd as an argument of ShowCycleBeginFormOp/ShowCycleEndFormOp constructor
|
||||||
|
|
||||||
|
public enum CurrentOp
|
||||||
|
{
|
||||||
|
None,
|
||||||
|
ShowFormAtCycleBeginning,
|
||||||
|
ShowFormAtCycleEnd,
|
||||||
|
EnterTestStartStates,
|
||||||
|
EnterTestEndStates,
|
||||||
|
}
|
||||||
|
|
||||||
|
CurrentOp currentOp;
|
||||||
|
|
||||||
|
|
||||||
|
public EntryForm()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntryForm(EntryFormCfg cfg)
|
||||||
|
: base(cfg)
|
||||||
|
{
|
||||||
|
serialNr = new string[Program.WMsCount];
|
||||||
|
disabled = new bool[Program.WMsCount];
|
||||||
|
wmStartState = new float[Program.WMsCount];
|
||||||
|
wmStartStateStr = new string[Program.WMsCount];
|
||||||
|
wmEndState = new float[Program.WMsCount];
|
||||||
|
wmCycleEndState = new string[Program.WMsCount];
|
||||||
|
|
||||||
|
entryFormCfg = cfg;
|
||||||
|
currentOp = CurrentOp.None;
|
||||||
|
log.Debug(this.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowCycleBeginFormOp(IList<IWaterMeter> waterMeters)
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.ShowFormAtCycleBeginning;
|
||||||
|
this.waterMeters = waterMeters;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowCycleEndFormOp(IList<IWaterMeter> waterMeters)
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.ShowFormAtCycleEnd;
|
||||||
|
this.waterMeters = waterMeters;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowTestStartFormOp()
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.EnterTestStartStates;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <returns>Reference to the operation</returns>
|
||||||
|
public IOperation ShowTestEndFormOp(float refVolume, float errLimLo, float errLimHi)
|
||||||
|
{
|
||||||
|
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||||
|
currentOp = CurrentOp.EnterTestEndStates;
|
||||||
|
this.refVolume = refVolume;
|
||||||
|
this.errLimLo = errLimLo;
|
||||||
|
this.errLimHi = errLimHi;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
delegate void EntryFormDlgt(EntryForm myRef);
|
||||||
|
///
|
||||||
|
void OpenBeginningDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new CycleBeginningForm(Program.WMsCount);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
///
|
||||||
|
void OpenEndDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new CycleEndForm(Program.WMsCount);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
///
|
||||||
|
void OpenTestStartStatesDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new TestStartEndForm(Program.WMsCount, disabled);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
///
|
||||||
|
void OpenTestEndStatesDlg(EntryForm myRef)
|
||||||
|
{
|
||||||
|
myRef.modelessDlg = new TestStartEndForm(Program.WMsCount, wmStartStateStr, disabled, refVolume, errLimLo, errLimHi);
|
||||||
|
modelessDlg.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Start this operation</summary>
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
|
resultSaved = false;
|
||||||
|
switch (currentOp)
|
||||||
|
{
|
||||||
|
case CurrentOp.ShowFormAtCycleBeginning:
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenBeginningDlg), this);
|
||||||
|
break;
|
||||||
|
case CurrentOp.ShowFormAtCycleEnd:
|
||||||
|
if (entryFormCfg.ShowCycleEndForm)
|
||||||
|
{
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenEndDlg), this);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case CurrentOp.EnterTestStartStates:
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenTestStartStatesDlg), this);
|
||||||
|
break;
|
||||||
|
case CurrentOp.EnterTestEndStates:
|
||||||
|
Program.MainWnd.Invoke(new EntryFormDlgt(OpenTestEndStatesDlg), this);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Run this operation</summary>
|
||||||
|
/// <returns>Event.ResultsPrinted</returns>
|
||||||
|
public Event Run()
|
||||||
|
{
|
||||||
|
if ((modelessDlg is IHasCompleted) && !(modelessDlg as IHasCompleted).Completed)
|
||||||
|
{
|
||||||
|
return Event.ModelessFormIsOpen;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!resultSaved) /// This is to save the result only once
|
||||||
|
{
|
||||||
|
if (currentOp == CurrentOp.ShowFormAtCycleBeginning)
|
||||||
|
{
|
||||||
|
CycleBeginningForm dlg = (modelessDlg as CycleBeginningForm);
|
||||||
|
|
||||||
|
if (dlg != null)
|
||||||
|
{
|
||||||
|
purchaseOrder = dlg.PurchaseOrder;
|
||||||
|
|
||||||
|
for (int i = 0; i < Math.Min(dlg.WaterMetersCount, waterMeters.Count); i++)
|
||||||
|
{
|
||||||
|
if (waterMeters[i] != null)
|
||||||
|
{
|
||||||
|
serialNr[i] = waterMeters[i].SerialNr = dlg.SNText[i];
|
||||||
|
disabled[i] = waterMeters[i].Disabled = dlg.Disabled[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (currentOp == CurrentOp.ShowFormAtCycleEnd)
|
||||||
|
{
|
||||||
|
CycleEndForm dlg = (modelessDlg as CycleEndForm);
|
||||||
|
int count = waterMeters.Count;
|
||||||
|
if ((dlg != null) && (count > dlg.WaterMetersCount)) count = dlg.WaterMetersCount;
|
||||||
|
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
if (waterMeters[i] != null)
|
||||||
|
{
|
||||||
|
/// In case entryFormCfg.ShowCycleEndForm == false dlg would be null, values would be string.Empty
|
||||||
|
wmCycleEndState[i] = waterMeters[i].EndState = (dlg != null) ? dlg.EndStateText[i] : string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (modelessDlg is TestStartEndForm && currentOp == CurrentOp.EnterTestStartStates)
|
||||||
|
{
|
||||||
|
/// Fixed start test - start
|
||||||
|
TestStartEndForm dlg = (modelessDlg as TestStartEndForm);
|
||||||
|
|
||||||
|
for (int i = 0; i < dlg.WaterMetersCount; i++)
|
||||||
|
{
|
||||||
|
wmStartState[i] = dlg.WMStartState[i];
|
||||||
|
wmStartStateStr[i] = dlg.WMStartStateStr[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (modelessDlg is TestStartEndForm && currentOp == CurrentOp.EnterTestEndStates)
|
||||||
|
{
|
||||||
|
/// Fixed start test - end
|
||||||
|
TestStartEndForm dlg = (modelessDlg as TestStartEndForm);
|
||||||
|
|
||||||
|
for (int i = 0; i < dlg.WaterMetersCount; i++)
|
||||||
|
{
|
||||||
|
wmEndState[i] = dlg.WMEndState[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resultSaved = true;
|
||||||
|
modelessDlg = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Event.ModelessFormClosed; /// Form closed
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Stop this operation</summary>
|
||||||
|
public void Stop()
|
||||||
|
{
|
||||||
|
if (modelessDlg is IHasCompleted)
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.OnCloseModelessForm(this, null);
|
||||||
|
modelessDlg = null;
|
||||||
|
}
|
||||||
|
currentOp = CurrentOp.None;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Updates test results with the information collected in watermeters.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMeters">Watermetes with information entered in the forms</param>
|
||||||
|
/// <param name="testResults">Test results to be updated with the information</param>
|
||||||
|
public void UpdateTestResults(IList<IWaterMeter> waterMeters, IList<Entities.TestResult> testResults)
|
||||||
|
{
|
||||||
|
foreach (var testRslt in testResults)
|
||||||
|
{
|
||||||
|
if (testRslt.MetersKind != Entities.MetersKind.Single) continue;
|
||||||
|
|
||||||
|
testRslt.PurchaseOrder = PurchaseOrder;
|
||||||
|
|
||||||
|
for (int i = 0; i < testRslt.Meters.Count; i++)
|
||||||
|
{
|
||||||
|
testRslt.Meters[i].SerialNr = SerialNr(i);
|
||||||
|
testRslt.Meters[i].Disabled = Disabled(i);
|
||||||
|
testRslt.Meters[i].EndState = WMCycleEndState(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
using TBF.BenchControl.Generic;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg
|
||||||
|
{
|
||||||
|
public IComponent GetComponent(IList<IComponent> components) { return new EntryForm(this); }
|
||||||
|
public IComponentCfgCtrl GetControl() { return new EntryFormCfgCtrl(); }
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Serialized parameters
|
||||||
|
///
|
||||||
|
public bool ShowCycleEndForm;
|
||||||
|
|
||||||
|
/// Private parameterless constructor invoked by all other (public) constructors
|
||||||
|
EntryFormCfg()
|
||||||
|
{
|
||||||
|
Name = "DataEntry-Standard-48";
|
||||||
|
ParentName = string.Empty;
|
||||||
|
ShowCycleEndForm = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntryFormCfg(IComponentFactory factory)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
this.Factory = factory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ToString(int i)
|
||||||
|
{
|
||||||
|
return string.Format("Name={0}, ShowEndForm={1}", Name, ShowCycleEndForm);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.BenchControl.Generic;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
public partial class EntryFormCfgCtrl : UserControl, IComponentCfgCtrl
|
||||||
|
{
|
||||||
|
static readonly ILog log = LogManager.GetLogger(typeof(EntryFormCfgCtrl));
|
||||||
|
|
||||||
|
public bool ShowMore { get { return false; } }
|
||||||
|
|
||||||
|
EntryFormCfg config;
|
||||||
|
public IComponentCfg Config
|
||||||
|
{
|
||||||
|
get { return config as IComponentCfg; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
config = value as EntryFormCfg;
|
||||||
|
Redraw();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntryFormCfgCtrl()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EntryFormCfgCtrl_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
Redraw();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
showCycleEndFormCheckBox.Text = Strings.Show_cycle_end_form;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Closing()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void Redraw()
|
||||||
|
{
|
||||||
|
if (config == null) return; /// Control was not loaded, settings were not changed
|
||||||
|
classNameLabel.Text = config.Factory.ClassName;
|
||||||
|
nameTextBox.Text = config.Name;
|
||||||
|
showCycleEndFormCheckBox.Checked = config.ShowCycleEndForm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Unlock()
|
||||||
|
{
|
||||||
|
nameTextBox.Enabled = true;
|
||||||
|
showCycleEndFormCheckBox.Enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CfgUpdateFlags VerifyCfg(ref string message)
|
||||||
|
{
|
||||||
|
CfgUpdateFlags flags = CfgUpdateFlags.None;
|
||||||
|
return flags;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CfgUpdateFlags UpdateCfg()
|
||||||
|
{
|
||||||
|
CfgUpdateFlags flags = CfgUpdateFlags.RestartRqrd;
|
||||||
|
|
||||||
|
if (config == null) return CfgUpdateFlags.Error; /// Control was not loaded, settings were not changed
|
||||||
|
|
||||||
|
config.Name = nameTextBox.Text;
|
||||||
|
config.ShowCycleEndForm = showCycleEndFormCheckBox.Checked;
|
||||||
|
|
||||||
|
return flags;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+100
@@ -0,0 +1,100 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
partial class EntryFormCfgCtrl
|
||||||
|
{
|
||||||
|
/// <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 Component 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.nameTextBox = new System.Windows.Forms.TextBox();
|
||||||
|
this.nameLabel = new System.Windows.Forms.Label();
|
||||||
|
this.classNameLabel = new System.Windows.Forms.Label();
|
||||||
|
this.showCycleEndFormCheckBox = new System.Windows.Forms.CheckBox();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// nameTextBox
|
||||||
|
//
|
||||||
|
this.nameTextBox.Enabled = false;
|
||||||
|
this.nameTextBox.Location = new System.Drawing.Point(131, 57);
|
||||||
|
this.nameTextBox.Name = "nameTextBox";
|
||||||
|
this.nameTextBox.Size = new System.Drawing.Size(130, 20);
|
||||||
|
this.nameTextBox.TabIndex = 5;
|
||||||
|
//
|
||||||
|
// nameLabel
|
||||||
|
//
|
||||||
|
this.nameLabel.AutoSize = true;
|
||||||
|
this.nameLabel.Location = new System.Drawing.Point(32, 60);
|
||||||
|
this.nameLabel.Name = "nameLabel";
|
||||||
|
this.nameLabel.Size = new System.Drawing.Size(35, 13);
|
||||||
|
this.nameLabel.TabIndex = 4;
|
||||||
|
this.nameLabel.Text = "Name";
|
||||||
|
//
|
||||||
|
// classNameLabel
|
||||||
|
//
|
||||||
|
this.classNameLabel.AutoSize = true;
|
||||||
|
this.classNameLabel.Location = new System.Drawing.Point(128, 32);
|
||||||
|
this.classNameLabel.Name = "classNameLabel";
|
||||||
|
this.classNameLabel.Size = new System.Drawing.Size(83, 13);
|
||||||
|
this.classNameLabel.TabIndex = 3;
|
||||||
|
this.classNameLabel.Text = "ComonentName";
|
||||||
|
//
|
||||||
|
// showCycleEndFormCheckBox
|
||||||
|
//
|
||||||
|
this.showCycleEndFormCheckBox.AutoSize = true;
|
||||||
|
this.showCycleEndFormCheckBox.Enabled = false;
|
||||||
|
this.showCycleEndFormCheckBox.Location = new System.Drawing.Point(131, 90);
|
||||||
|
this.showCycleEndFormCheckBox.Name = "showCycleEndFormCheckBox";
|
||||||
|
this.showCycleEndFormCheckBox.Size = new System.Drawing.Size(125, 17);
|
||||||
|
this.showCycleEndFormCheckBox.TabIndex = 13;
|
||||||
|
this.showCycleEndFormCheckBox.Text = "Show cycle end form";
|
||||||
|
this.showCycleEndFormCheckBox.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// EntryFormCfgCtrl
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.Controls.Add(this.showCycleEndFormCheckBox);
|
||||||
|
this.Controls.Add(this.nameTextBox);
|
||||||
|
this.Controls.Add(this.nameLabel);
|
||||||
|
this.Controls.Add(this.classNameLabel);
|
||||||
|
this.Name = "EntryFormCfgCtrl";
|
||||||
|
this.Size = new System.Drawing.Size(300, 200);
|
||||||
|
this.Load += new System.EventHandler(this.EntryFormCfgCtrl_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.TextBox nameTextBox;
|
||||||
|
private System.Windows.Forms.Label nameLabel;
|
||||||
|
private System.Windows.Forms.Label classNameLabel;
|
||||||
|
private System.Windows.Forms.CheckBox showCycleEndFormCheckBox;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using TBF.BenchControl.Generic;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
public class EntryFormFactory : IComponentFactory
|
||||||
|
{
|
||||||
|
public string ClassName { get { return "DataEntry-Standard-48"; } }
|
||||||
|
|
||||||
|
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
|
||||||
|
|
||||||
|
public IComponent DummyComponent() { return new EntryForm(); }
|
||||||
|
|
||||||
|
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
|
||||||
|
|
||||||
|
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
|
||||||
|
{
|
||||||
|
return ComponentCfgBase.CreateFromDbEntity(typeof(EntryFormCfg), component, this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,649 @@
|
|||||||
|
///
|
||||||
|
/// Copyright (c) 2015 Sensus Metering Systems
|
||||||
|
///
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using log4net;
|
||||||
|
using TBF.Resources;
|
||||||
|
|
||||||
|
namespace TBF.BenchControl.DataEntry.Standard48
|
||||||
|
{
|
||||||
|
public partial class TestStartEndForm : Form, GenericDevices.IHasCompleted
|
||||||
|
{
|
||||||
|
private static readonly ILog log = LogManager.GetLogger(typeof(TestStartEndForm));
|
||||||
|
|
||||||
|
// Set to 'true' when the form closes
|
||||||
|
public bool Completed { get { return completed; } }
|
||||||
|
bool completed;
|
||||||
|
|
||||||
|
/// <summary> Number of text boxes for serial numbers </summary>
|
||||||
|
public readonly int WaterMetersCount;
|
||||||
|
|
||||||
|
readonly bool[] disabled;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public float[] WMStartState;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public readonly string[] WMStartStateStr;
|
||||||
|
|
||||||
|
// To be retrieved after the form closes
|
||||||
|
public float[] WMEndState;
|
||||||
|
|
||||||
|
bool endStates; /// false=start states, true=end states
|
||||||
|
float refVolume;
|
||||||
|
float warningLimLo; /// limit to display exclamation mark, typically 2x errLimLo
|
||||||
|
float warningLimHi; /// limit to display exclamation mark, typically 2x errLimHi
|
||||||
|
|
||||||
|
int TextBoxesCount;
|
||||||
|
///
|
||||||
|
Label[] labels;
|
||||||
|
TextBox[] startTextBoxes;
|
||||||
|
TextBox[] endTextBoxes;
|
||||||
|
IList<TextBox> enabledTextBoxes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Parameterless constructor initializing common part for start and endstate form
|
||||||
|
/// </summary>
|
||||||
|
public TestStartEndForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
TextBoxesCount = 24;
|
||||||
|
|
||||||
|
labels = new Label[]
|
||||||
|
{
|
||||||
|
label1, label2, label3, label4, label5, label6, label7, label8, label9, label10,
|
||||||
|
label11, label12, label13, label14, label15, label16, label17, label18, label19, label20,
|
||||||
|
label21, label22, label23, label24,
|
||||||
|
};
|
||||||
|
startTextBoxes = new TextBox[]
|
||||||
|
{
|
||||||
|
startTextBox1, startTextBox2, startTextBox3, startTextBox4, startTextBox5, startTextBox6,
|
||||||
|
startTextBox7, startTextBox8, startTextBox9, startTextBox10, startTextBox11, startTextBox12,
|
||||||
|
startTextBox13, startTextBox14, startTextBox15, startTextBox16, startTextBox17, startTextBox18,
|
||||||
|
startTextBox19, startTextBox20, startTextBox21, startTextBox22, startTextBox23, startTextBox24,
|
||||||
|
};
|
||||||
|
endTextBoxes = new TextBox[]
|
||||||
|
{
|
||||||
|
endTextBox1, endTextBox2, endTextBox3, endTextBox4, endTextBox5, endTextBox6,
|
||||||
|
endTextBox7, endTextBox8, endTextBox9, endTextBox10, endTextBox11, endTextBox12,
|
||||||
|
endTextBox13, endTextBox14, endTextBox15, endTextBox16, endTextBox17, endTextBox18,
|
||||||
|
endTextBox19, endTextBox20, endTextBox21, endTextBox22, endTextBox23, endTextBox24,
|
||||||
|
};
|
||||||
|
enabledTextBoxes = new List<TextBox>();
|
||||||
|
|
||||||
|
completed = false;
|
||||||
|
StartForceCloseHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor to fill in start states
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of water meters</param>
|
||||||
|
/// <param name="disabled">Information from CycleBeginningForm about availability of water meters</param>
|
||||||
|
public TestStartEndForm(int waterMetersCount, bool[] disabled)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
endStates = false;
|
||||||
|
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
this.disabled = disabled;
|
||||||
|
|
||||||
|
ShuffleTextBoxes();
|
||||||
|
|
||||||
|
WMStartState = new float[waterMetersCount];
|
||||||
|
WMStartStateStr = new string[waterMetersCount];
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor to fill in end states
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="waterMetersCount">Number of water meters</param>
|
||||||
|
/// <param name="wmStartStateStr">Information entered on test start</param>
|
||||||
|
/// <param name="disabled">Information from CycleBeginningForm about availability of water meters</param>
|
||||||
|
/// <param name="refVolume">Reference volume, it is used to verify the end state, show/hide exclamation if necessary</param>
|
||||||
|
/// <param name="errLimLo">Error limit low, it is used to verify the end state, show/hide exclamation if necessary</param>
|
||||||
|
/// <param name="errLimHi">Error limit high, it is used to verify the end state, show/hide exclamation if necessary</param>
|
||||||
|
public TestStartEndForm(int waterMetersCount, string[] wmStartStateStr, bool[] disabled,
|
||||||
|
float refVolume, float errLimLo, float errLimHi)
|
||||||
|
: this()
|
||||||
|
{
|
||||||
|
endStates = true;
|
||||||
|
|
||||||
|
this.WaterMetersCount = waterMetersCount;
|
||||||
|
if (wmStartStateStr == null || wmStartStateStr.Length != waterMetersCount)
|
||||||
|
throw (new Exception("Invalid 'wmStartStateStr' argument"));
|
||||||
|
this.WMStartStateStr = wmStartStateStr;
|
||||||
|
this.disabled = disabled;
|
||||||
|
this.refVolume = refVolume;
|
||||||
|
this.warningLimLo = 2 * errLimLo;
|
||||||
|
this.warningLimHi = 2 * errLimHi;
|
||||||
|
|
||||||
|
ShuffleTextBoxes();
|
||||||
|
|
||||||
|
WMEndState = new float[waterMetersCount];
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Make sure the layout of labels/text boxes on the screen
|
||||||
|
/// corresponds to the layout of watermeters of the test bench.
|
||||||
|
/// </summary>
|
||||||
|
void ShuffleTextBoxes()
|
||||||
|
{
|
||||||
|
if (Program.WMsCount < TextBoxesCount)
|
||||||
|
{
|
||||||
|
int nrLines = Program.WMsCount / Program.LineSize;
|
||||||
|
int gap = (TextBoxesCount - Program.WMsCount) / nrLines;
|
||||||
|
|
||||||
|
int dest = 0;
|
||||||
|
for (int l = 0; l < nrLines; l++)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Program.LineSize; i++)
|
||||||
|
{
|
||||||
|
labels[dest] = labels[l * Program.LineSize + l * gap + i];
|
||||||
|
startTextBoxes[dest] = startTextBoxes[l * Program.LineSize + l * gap + i];
|
||||||
|
endTextBoxes[dest] = endTextBoxes[l * Program.LineSize + l * gap + i];
|
||||||
|
dest++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextBoxesCount = Program.WMsCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CycleEndForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Localize();
|
||||||
|
|
||||||
|
//Height = 115 + 90 * WaterMetersCount;
|
||||||
|
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (i < WaterMetersCount)
|
||||||
|
{
|
||||||
|
labels[i].Visible = startTextBoxes[i].Visible = endTextBoxes[i].Visible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (endStates)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (WMStartStateStr != null && i < WMStartStateStr.Length)
|
||||||
|
{
|
||||||
|
startTextBoxes[i].Text = WMStartStateStr[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (disabled != null && i < disabled.Length && disabled[i])
|
||||||
|
{
|
||||||
|
endTextBoxes[i].Enabled = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
endTextBoxes[i].Enabled = true;
|
||||||
|
enabledTextBoxes.Add(endTextBoxes[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (disabled != null && i < disabled.Length && disabled[i])
|
||||||
|
{
|
||||||
|
startTextBoxes[i].Enabled = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
startTextBoxes[i].Enabled = true;
|
||||||
|
enabledTextBoxes.Add(startTextBoxes[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Localize()
|
||||||
|
{
|
||||||
|
Text = Strings.Water_Meter_States;
|
||||||
|
for (int i = 0; i < TextBoxesCount; i++)
|
||||||
|
{
|
||||||
|
labels[i].Text = Strings.Water_Meter + " " + (i + 1).ToString();
|
||||||
|
}
|
||||||
|
startLabel.Text = Strings.Start;
|
||||||
|
endLabel.Text = Strings.End;
|
||||||
|
okButton.Text = Strings.OkBtnText;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void okButton_Click(object sender, EventArgs eArgs)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (endStates)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, TextBoxesCount); i++)
|
||||||
|
{
|
||||||
|
if (endTextBoxes[i].Visible && endTextBoxes[i].Enabled)
|
||||||
|
{
|
||||||
|
WMEndState[i] = Utils.ParseUFloat(endTextBoxes[i].Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int i = 0; i < Math.Min(WaterMetersCount, TextBoxesCount); i++)
|
||||||
|
{
|
||||||
|
if (startTextBoxes[i].Visible && startTextBoxes[i].Enabled)
|
||||||
|
{
|
||||||
|
WMStartStateStr[i] = startTextBoxes[i].Text;
|
||||||
|
WMStartState[i] = Utils.ParseUFloat(startTextBoxes[i].Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
log.ErrorFormat("Exception: {0}", e.Message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
completed = true;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Forced close handling
|
||||||
|
|
||||||
|
public void StartForceCloseHandler()
|
||||||
|
{
|
||||||
|
UiBridge.Bridge.CloseModelessFormHandler += delegate(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
if (InvokeRequired) { Invoke(new EventHandler<EventArgs>(OnForceClose), sender, args); }
|
||||||
|
else OnForceClose(sender, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnForceClose(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Cancel;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 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 endTextBoxes (1..24).
|
||||||
|
/// </summary>
|
||||||
|
private void endTextBox1_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox1.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox1.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { };
|
||||||
|
exclamation1.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox2_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox2.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox2.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation2.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox3_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox3.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox3.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation3.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox4_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox4.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox4.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation4.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox5_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox5.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox5.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation5.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox6_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox6.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox6.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation6.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox7_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox7.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox7.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation7.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox8_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox8.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox8.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation8.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox9_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox9.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox9.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation9.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void endTextBox10_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox10.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox10.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation10.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void endTextBox11_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox11.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox11.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation11.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox12_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox12.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox12.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation12.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox13_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox13.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox13.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation13.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox14_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox14.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox14.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation14.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox15_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox15.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox15.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation15.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox16_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox16.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox16.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation16.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox17_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox17.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox17.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation17.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox18_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox18.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox18.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation18.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox19_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox19.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox19.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation19.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox20_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox20.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox20.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation20.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox21_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox21.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox21.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation21.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox22_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox22.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox22.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation22.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox23_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox23.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox23.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation23.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
private void endTextBox24_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
float err = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
float endState = Utils.ParseUFloat(endTextBox24.Text);
|
||||||
|
float startState = Utils.ParseUFloat(startTextBox24.Text);
|
||||||
|
err = 100.0f * (endState - startState - refVolume) / refVolume;
|
||||||
|
}
|
||||||
|
catch { err = 1000.0f; };
|
||||||
|
exclamation24.Visible = (err < warningLimLo) || (warningLimHi < err);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Process a key press within any enabled text boxe
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
/// <param name="currentFocusOwner">TextBox control which received the event</param>
|
||||||
|
private void ProcKeyPress(object sender, KeyPressEventArgs e, TextBox currentFocusOwner)
|
||||||
|
{
|
||||||
|
if (e.KeyChar == '+')
|
||||||
|
{
|
||||||
|
/// Process '+' key ..... Form completed
|
||||||
|
okButton_Click(sender, e);
|
||||||
|
}
|
||||||
|
if (e.KeyChar == '\r')
|
||||||
|
{
|
||||||
|
/// Process <enter> key ..... Next text field
|
||||||
|
if (enabledTextBoxes.Count < 2) return; /// There is just one enabled textbox
|
||||||
|
|
||||||
|
for (int i = 0; i < enabledTextBoxes.Count; i++)
|
||||||
|
{
|
||||||
|
if (enabledTextBoxes[i] == currentFocusOwner)
|
||||||
|
{
|
||||||
|
/// Change focus to the next enabled text box
|
||||||
|
enabledTextBoxes[(i + 1) % enabledTextBoxes.Count].Focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void startTextBox1_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox1); }
|
||||||
|
private void startTextBox2_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox2); }
|
||||||
|
private void startTextBox3_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox3); }
|
||||||
|
private void startTextBox4_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox4); }
|
||||||
|
private void startTextBox5_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox5); }
|
||||||
|
private void startTextBox6_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox6); }
|
||||||
|
private void startTextBox7_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox7); }
|
||||||
|
private void startTextBox8_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox8); }
|
||||||
|
private void startTextBox9_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox9); }
|
||||||
|
private void startTextBox10_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox10); }
|
||||||
|
private void startTextBox11_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox11); }
|
||||||
|
private void startTextBox12_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox12); }
|
||||||
|
private void startTextBox13_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox13); }
|
||||||
|
private void startTextBox14_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox14); }
|
||||||
|
private void startTextBox15_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox15); }
|
||||||
|
private void startTextBox16_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox16); }
|
||||||
|
private void startTextBox17_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox17); }
|
||||||
|
private void startTextBox18_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox18); }
|
||||||
|
private void startTextBox19_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox19); }
|
||||||
|
private void startTextBox20_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox20); }
|
||||||
|
private void startTextBox21_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox21); }
|
||||||
|
private void startTextBox22_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox22); }
|
||||||
|
private void startTextBox23_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox23); }
|
||||||
|
private void startTextBox24_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, startTextBox24); }
|
||||||
|
|
||||||
|
private void endTextBox1_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox1); }
|
||||||
|
private void endTextBox2_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox2); }
|
||||||
|
private void endTextBox3_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox3); }
|
||||||
|
private void endTextBox4_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox4); }
|
||||||
|
private void endTextBox5_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox5); }
|
||||||
|
private void endTextBox6_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox6); }
|
||||||
|
private void endTextBox7_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox7); }
|
||||||
|
private void endTextBox8_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox8); }
|
||||||
|
private void endTextBox9_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox9); }
|
||||||
|
private void endTextBox10_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox10); }
|
||||||
|
private void endTextBox11_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox11); }
|
||||||
|
private void endTextBox12_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox12); }
|
||||||
|
private void endTextBox13_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox13); }
|
||||||
|
private void endTextBox14_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox14); }
|
||||||
|
private void endTextBox15_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox15); }
|
||||||
|
private void endTextBox16_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox16); }
|
||||||
|
private void endTextBox17_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox17); }
|
||||||
|
private void endTextBox18_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox18); }
|
||||||
|
private void endTextBox19_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox19); }
|
||||||
|
private void endTextBox20_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox20); }
|
||||||
|
private void endTextBox21_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox21); }
|
||||||
|
private void endTextBox22_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox22); }
|
||||||
|
private void endTextBox23_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox23); }
|
||||||
|
private void endTextBox24_KeyPress(object sndr, KeyPressEventArgs e) { ProcKeyPress(sndr, e, endTextBox24); }
|
||||||
|
}
|
||||||
|
}
|
||||||
+1516
File diff suppressed because it is too large
Load Diff
@@ -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>
|
||||||
@@ -30,7 +30,9 @@ namespace TBF.BenchControl
|
|||||||
#endif
|
#endif
|
||||||
Factories.Add(new DataEntry.iPerl.EntryFormFactory());
|
Factories.Add(new DataEntry.iPerl.EntryFormFactory());
|
||||||
Factories.Add(new DataEntry.Standard.EntryFormFactory());
|
Factories.Add(new DataEntry.Standard.EntryFormFactory());
|
||||||
|
Factories.Add(new DataEntry.Standard12.EntryFormFactory());
|
||||||
Factories.Add(new DataEntry.Standard24.EntryFormFactory());
|
Factories.Add(new DataEntry.Standard24.EntryFormFactory());
|
||||||
|
Factories.Add(new DataEntry.Standard48.EntryFormFactory());
|
||||||
Factories.Add(new Elde.Diverter.DiverterFactory());
|
Factories.Add(new Elde.Diverter.DiverterFactory());
|
||||||
Factories.Add(new TestMethods.FixedStartCombinedMeters.TestMethodFactory());
|
Factories.Add(new TestMethods.FixedStartCombinedMeters.TestMethodFactory());
|
||||||
Factories.Add(new TestMethods.FixedStartMassCollection.TestMethodFactory());
|
Factories.Add(new TestMethods.FixedStartMassCollection.TestMethodFactory());
|
||||||
|
|||||||
@@ -207,6 +207,33 @@
|
|||||||
<Compile Include="BenchControl\DataEntry\iPerl\TestStartEndForm.designer.cs">
|
<Compile Include="BenchControl\DataEntry\iPerl\TestStartEndForm.designer.cs">
|
||||||
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\CycleBeginningForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\CycleBeginningForm.designer.cs">
|
||||||
|
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\CycleEndForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\CycleEndForm.designer.cs">
|
||||||
|
<DependentUpon>CycleEndForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\EntryForm.cs" />
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\EntryFormCfg.cs" />
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\EntryFormCfgCtrl.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\EntryFormCfgCtrl.designer.cs">
|
||||||
|
<DependentUpon>EntryFormCfgCtrl.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\EntryFormFactory.cs" />
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\TestStartEndForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard12\TestStartEndForm.designer.cs">
|
||||||
|
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="BenchControl\DataEntry\Standard24\CycleBeginningForm.cs">
|
<Compile Include="BenchControl\DataEntry\Standard24\CycleBeginningForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -234,6 +261,33 @@
|
|||||||
<Compile Include="BenchControl\DataEntry\Standard24\TestStartEndForm.designer.cs">
|
<Compile Include="BenchControl\DataEntry\Standard24\TestStartEndForm.designer.cs">
|
||||||
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\CycleBeginningForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\CycleBeginningForm.designer.cs">
|
||||||
|
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\CycleEndForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\CycleEndForm.designer.cs">
|
||||||
|
<DependentUpon>CycleEndForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\EntryForm.cs" />
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\EntryFormCfg.cs" />
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\EntryFormCfgCtrl.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\EntryFormCfgCtrl.designer.cs">
|
||||||
|
<DependentUpon>EntryFormCfgCtrl.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\EntryFormFactory.cs" />
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\TestStartEndForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BenchControl\DataEntry\Standard48\TestStartEndForm.designer.cs">
|
||||||
|
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="BenchControl\DataEntry\Standard\TestStartEndForm.cs">
|
<Compile Include="BenchControl\DataEntry\Standard\TestStartEndForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -1405,6 +1459,18 @@
|
|||||||
<EmbeddedResource Include="BenchControl\DataEntry\Munich\EntryFormCfgCtrl.resx">
|
<EmbeddedResource Include="BenchControl\DataEntry\Munich\EntryFormCfgCtrl.resx">
|
||||||
<DependentUpon>EntryFormCfgCtrl.cs</DependentUpon>
|
<DependentUpon>EntryFormCfgCtrl.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard12\CycleBeginningForm.resx">
|
||||||
|
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard12\CycleEndForm.resx">
|
||||||
|
<DependentUpon>CycleEndForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard12\EntryFormCfgCtrl.resx">
|
||||||
|
<DependentUpon>EntryFormCfgCtrl.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard12\TestStartEndForm.resx">
|
||||||
|
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="BenchControl\DataEntry\Standard24\CycleBeginningForm.resx">
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard24\CycleBeginningForm.resx">
|
||||||
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@@ -1417,6 +1483,18 @@
|
|||||||
<EmbeddedResource Include="BenchControl\DataEntry\Standard24\TestStartEndForm.resx">
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard24\TestStartEndForm.resx">
|
||||||
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard48\CycleBeginningForm.resx">
|
||||||
|
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard48\CycleEndForm.resx">
|
||||||
|
<DependentUpon>CycleEndForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard48\EntryFormCfgCtrl.resx">
|
||||||
|
<DependentUpon>EntryFormCfgCtrl.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard48\TestStartEndForm.resx">
|
||||||
|
<DependentUpon>TestStartEndForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="BenchControl\DataEntry\Standard\CycleBeginningForm.resx">
|
<EmbeddedResource Include="BenchControl\DataEntry\Standard\CycleBeginningForm.resx">
|
||||||
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
<DependentUpon>CycleBeginningForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
Reference in New Issue
Block a user