- possibility to invert valves (UI as well as the functionality)
- UI prepared for the usage of valve delays
This commit is contained in:
+76
-39
@@ -35,7 +35,7 @@
|
||||
this.nameLabel = new System.Windows.Forms.Label();
|
||||
this.classNameLabel = new System.Windows.Forms.Label();
|
||||
this.coupledToLabel = new System.Windows.Forms.Label();
|
||||
this.invertCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.invertCoupleCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.parentNameComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.lagOpeningLabel = new System.Windows.Forms.Label();
|
||||
this.lagClosingLabel = new System.Windows.Forms.Label();
|
||||
@@ -44,33 +44,36 @@
|
||||
this.coupledToComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.categoryLabel = new System.Windows.Forms.Label();
|
||||
this.categoryComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.openCloseTimeTextBox = new System.Windows.Forms.TextBox();
|
||||
this.openCloseTimeLabel = new System.Windows.Forms.Label();
|
||||
this.invertedCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// bitPositionTextBox
|
||||
//
|
||||
this.bitPositionTextBox.Enabled = false;
|
||||
this.bitPositionTextBox.Location = new System.Drawing.Point(138, 77);
|
||||
this.bitPositionTextBox.Location = new System.Drawing.Point(138, 98);
|
||||
this.bitPositionTextBox.Name = "bitPositionTextBox";
|
||||
this.bitPositionTextBox.Size = new System.Drawing.Size(81, 20);
|
||||
this.bitPositionTextBox.TabIndex = 6;
|
||||
this.bitPositionTextBox.TabIndex = 10;
|
||||
//
|
||||
// bitPositionLabel
|
||||
//
|
||||
this.bitPositionLabel.AutoSize = true;
|
||||
this.bitPositionLabel.Location = new System.Drawing.Point(22, 80);
|
||||
this.bitPositionLabel.Location = new System.Drawing.Point(22, 101);
|
||||
this.bitPositionLabel.Name = "bitPositionLabel";
|
||||
this.bitPositionLabel.Size = new System.Drawing.Size(59, 13);
|
||||
this.bitPositionLabel.TabIndex = 5;
|
||||
this.bitPositionLabel.Text = "Bit Position";
|
||||
this.bitPositionLabel.Size = new System.Drawing.Size(58, 13);
|
||||
this.bitPositionLabel.TabIndex = 9;
|
||||
this.bitPositionLabel.Text = "Bit position";
|
||||
//
|
||||
// parentNameLabel
|
||||
//
|
||||
this.parentNameLabel.AutoSize = true;
|
||||
this.parentNameLabel.Location = new System.Drawing.Point(22, 55);
|
||||
this.parentNameLabel.Location = new System.Drawing.Point(22, 54);
|
||||
this.parentNameLabel.Name = "parentNameLabel";
|
||||
this.parentNameLabel.Size = new System.Drawing.Size(69, 13);
|
||||
this.parentNameLabel.Size = new System.Drawing.Size(67, 13);
|
||||
this.parentNameLabel.TabIndex = 3;
|
||||
this.parentNameLabel.Text = "Parent Name";
|
||||
this.parentNameLabel.Text = "Parent name";
|
||||
//
|
||||
// nameTextBox
|
||||
//
|
||||
@@ -101,28 +104,28 @@
|
||||
// coupledToLabel
|
||||
//
|
||||
this.coupledToLabel.AutoSize = true;
|
||||
this.coupledToLabel.Location = new System.Drawing.Point(22, 128);
|
||||
this.coupledToLabel.Location = new System.Drawing.Point(22, 165);
|
||||
this.coupledToLabel.Name = "coupledToLabel";
|
||||
this.coupledToLabel.Size = new System.Drawing.Size(56, 13);
|
||||
this.coupledToLabel.TabIndex = 9;
|
||||
this.coupledToLabel.Text = "Copled To";
|
||||
this.coupledToLabel.Size = new System.Drawing.Size(52, 13);
|
||||
this.coupledToLabel.TabIndex = 12;
|
||||
this.coupledToLabel.Text = "Copled to";
|
||||
//
|
||||
// invertCheckBox
|
||||
// invertCoupleCheckBox
|
||||
//
|
||||
this.invertCheckBox.AutoSize = true;
|
||||
this.invertCheckBox.Enabled = false;
|
||||
this.invertCheckBox.Location = new System.Drawing.Point(232, 128);
|
||||
this.invertCheckBox.Name = "invertCheckBox";
|
||||
this.invertCheckBox.Size = new System.Drawing.Size(53, 17);
|
||||
this.invertCheckBox.TabIndex = 11;
|
||||
this.invertCheckBox.Text = "Invert";
|
||||
this.invertCheckBox.UseVisualStyleBackColor = true;
|
||||
this.invertCoupleCheckBox.AutoSize = true;
|
||||
this.invertCoupleCheckBox.Enabled = false;
|
||||
this.invertCoupleCheckBox.Location = new System.Drawing.Point(228, 164);
|
||||
this.invertCoupleCheckBox.Name = "invertCoupleCheckBox";
|
||||
this.invertCoupleCheckBox.Size = new System.Drawing.Size(53, 17);
|
||||
this.invertCoupleCheckBox.TabIndex = 14;
|
||||
this.invertCoupleCheckBox.Text = "Invert";
|
||||
this.invertCoupleCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// parentNameComboBox
|
||||
//
|
||||
this.parentNameComboBox.Enabled = false;
|
||||
this.parentNameComboBox.FormattingEnabled = true;
|
||||
this.parentNameComboBox.Location = new System.Drawing.Point(138, 52);
|
||||
this.parentNameComboBox.Location = new System.Drawing.Point(138, 51);
|
||||
this.parentNameComboBox.Name = "parentNameComboBox";
|
||||
this.parentNameComboBox.Size = new System.Drawing.Size(130, 21);
|
||||
this.parentNameComboBox.TabIndex = 4;
|
||||
@@ -130,50 +133,50 @@
|
||||
// lagOpeningLabel
|
||||
//
|
||||
this.lagOpeningLabel.AutoSize = true;
|
||||
this.lagOpeningLabel.Location = new System.Drawing.Point(22, 153);
|
||||
this.lagOpeningLabel.Location = new System.Drawing.Point(22, 189);
|
||||
this.lagOpeningLabel.Name = "lagOpeningLabel";
|
||||
this.lagOpeningLabel.Size = new System.Drawing.Size(109, 13);
|
||||
this.lagOpeningLabel.TabIndex = 12;
|
||||
this.lagOpeningLabel.TabIndex = 15;
|
||||
this.lagOpeningLabel.Text = "Lag when opening [s]";
|
||||
//
|
||||
// lagClosingLabel
|
||||
//
|
||||
this.lagClosingLabel.AutoSize = true;
|
||||
this.lagClosingLabel.Location = new System.Drawing.Point(22, 177);
|
||||
this.lagClosingLabel.Location = new System.Drawing.Point(22, 212);
|
||||
this.lagClosingLabel.Name = "lagClosingLabel";
|
||||
this.lagClosingLabel.Size = new System.Drawing.Size(104, 13);
|
||||
this.lagClosingLabel.TabIndex = 14;
|
||||
this.lagClosingLabel.TabIndex = 17;
|
||||
this.lagClosingLabel.Text = "Lag when closing [s]";
|
||||
//
|
||||
// lagOpeningTextBox
|
||||
//
|
||||
this.lagOpeningTextBox.Enabled = false;
|
||||
this.lagOpeningTextBox.Location = new System.Drawing.Point(138, 150);
|
||||
this.lagOpeningTextBox.Location = new System.Drawing.Point(138, 186);
|
||||
this.lagOpeningTextBox.Name = "lagOpeningTextBox";
|
||||
this.lagOpeningTextBox.Size = new System.Drawing.Size(81, 20);
|
||||
this.lagOpeningTextBox.TabIndex = 13;
|
||||
this.lagOpeningTextBox.TabIndex = 16;
|
||||
//
|
||||
// lagClosingTextBox
|
||||
//
|
||||
this.lagClosingTextBox.Enabled = false;
|
||||
this.lagClosingTextBox.Location = new System.Drawing.Point(138, 174);
|
||||
this.lagClosingTextBox.Location = new System.Drawing.Point(138, 209);
|
||||
this.lagClosingTextBox.Name = "lagClosingTextBox";
|
||||
this.lagClosingTextBox.Size = new System.Drawing.Size(81, 20);
|
||||
this.lagClosingTextBox.TabIndex = 15;
|
||||
this.lagClosingTextBox.TabIndex = 18;
|
||||
//
|
||||
// coupledToComboBox
|
||||
//
|
||||
this.coupledToComboBox.Enabled = false;
|
||||
this.coupledToComboBox.FormattingEnabled = true;
|
||||
this.coupledToComboBox.Location = new System.Drawing.Point(138, 125);
|
||||
this.coupledToComboBox.Location = new System.Drawing.Point(138, 162);
|
||||
this.coupledToComboBox.Name = "coupledToComboBox";
|
||||
this.coupledToComboBox.Size = new System.Drawing.Size(81, 21);
|
||||
this.coupledToComboBox.TabIndex = 10;
|
||||
this.coupledToComboBox.TabIndex = 13;
|
||||
//
|
||||
// categoryLabel
|
||||
//
|
||||
this.categoryLabel.AutoSize = true;
|
||||
this.categoryLabel.Location = new System.Drawing.Point(22, 104);
|
||||
this.categoryLabel.Location = new System.Drawing.Point(22, 124);
|
||||
this.categoryLabel.Name = "categoryLabel";
|
||||
this.categoryLabel.Size = new System.Drawing.Size(49, 13);
|
||||
this.categoryLabel.TabIndex = 7;
|
||||
@@ -183,15 +186,46 @@
|
||||
//
|
||||
this.categoryComboBox.Enabled = false;
|
||||
this.categoryComboBox.FormattingEnabled = true;
|
||||
this.categoryComboBox.Location = new System.Drawing.Point(138, 101);
|
||||
this.categoryComboBox.Location = new System.Drawing.Point(138, 121);
|
||||
this.categoryComboBox.Name = "categoryComboBox";
|
||||
this.categoryComboBox.Size = new System.Drawing.Size(81, 21);
|
||||
this.categoryComboBox.TabIndex = 8;
|
||||
//
|
||||
// openCloseTimeTextBox
|
||||
//
|
||||
this.openCloseTimeTextBox.Enabled = false;
|
||||
this.openCloseTimeTextBox.Location = new System.Drawing.Point(138, 75);
|
||||
this.openCloseTimeTextBox.Name = "openCloseTimeTextBox";
|
||||
this.openCloseTimeTextBox.Size = new System.Drawing.Size(81, 20);
|
||||
this.openCloseTimeTextBox.TabIndex = 6;
|
||||
//
|
||||
// openCloseTimeLabel
|
||||
//
|
||||
this.openCloseTimeLabel.AutoSize = true;
|
||||
this.openCloseTimeLabel.Location = new System.Drawing.Point(22, 78);
|
||||
this.openCloseTimeLabel.Name = "openCloseTimeLabel";
|
||||
this.openCloseTimeLabel.Size = new System.Drawing.Size(48, 13);
|
||||
this.openCloseTimeLabel.TabIndex = 5;
|
||||
this.openCloseTimeLabel.Text = "Delay [s]";
|
||||
//
|
||||
// invertedCheckBox
|
||||
//
|
||||
this.invertedCheckBox.AutoSize = true;
|
||||
this.invertedCheckBox.Enabled = false;
|
||||
this.invertedCheckBox.Location = new System.Drawing.Point(228, 100);
|
||||
this.invertedCheckBox.Name = "invertedCheckBox";
|
||||
this.invertedCheckBox.Size = new System.Drawing.Size(65, 17);
|
||||
this.invertedCheckBox.TabIndex = 11;
|
||||
this.invertedCheckBox.Text = "Inverted";
|
||||
this.invertedCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// ValveCfgCtrl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.invertedCheckBox);
|
||||
this.Controls.Add(this.openCloseTimeTextBox);
|
||||
this.Controls.Add(this.openCloseTimeLabel);
|
||||
this.Controls.Add(this.categoryComboBox);
|
||||
this.Controls.Add(this.categoryLabel);
|
||||
this.Controls.Add(this.coupledToComboBox);
|
||||
@@ -200,7 +234,7 @@
|
||||
this.Controls.Add(this.lagClosingLabel);
|
||||
this.Controls.Add(this.lagOpeningLabel);
|
||||
this.Controls.Add(this.parentNameComboBox);
|
||||
this.Controls.Add(this.invertCheckBox);
|
||||
this.Controls.Add(this.invertCoupleCheckBox);
|
||||
this.Controls.Add(this.coupledToLabel);
|
||||
this.Controls.Add(this.bitPositionTextBox);
|
||||
this.Controls.Add(this.bitPositionLabel);
|
||||
@@ -209,7 +243,7 @@
|
||||
this.Controls.Add(this.nameLabel);
|
||||
this.Controls.Add(this.classNameLabel);
|
||||
this.Name = "ValveCfgCtrl";
|
||||
this.Size = new System.Drawing.Size(300, 200);
|
||||
this.Size = new System.Drawing.Size(300, 250);
|
||||
this.Load += new System.EventHandler(this.ValveCfgCtrl_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
@@ -225,7 +259,7 @@
|
||||
private System.Windows.Forms.Label nameLabel;
|
||||
private System.Windows.Forms.Label classNameLabel;
|
||||
private System.Windows.Forms.Label coupledToLabel;
|
||||
private System.Windows.Forms.CheckBox invertCheckBox;
|
||||
private System.Windows.Forms.CheckBox invertCoupleCheckBox;
|
||||
private System.Windows.Forms.ComboBox parentNameComboBox;
|
||||
private System.Windows.Forms.Label lagOpeningLabel;
|
||||
private System.Windows.Forms.Label lagClosingLabel;
|
||||
@@ -234,5 +268,8 @@
|
||||
private System.Windows.Forms.ComboBox coupledToComboBox;
|
||||
private System.Windows.Forms.Label categoryLabel;
|
||||
private System.Windows.Forms.ComboBox categoryComboBox;
|
||||
private System.Windows.Forms.TextBox openCloseTimeTextBox;
|
||||
private System.Windows.Forms.Label openCloseTimeLabel;
|
||||
private System.Windows.Forms.CheckBox invertedCheckBox;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user