|
|
@@ -30,22 +30,34 @@
|
|
|
{
|
|
|
this.AddCommand = new DevExpress.XtraEditors.SimpleButton();
|
|
|
this.CodeClientAddress = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
- this.comboBoxEdit2 = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
- this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
|
|
|
- this.textEdit2 = new DevExpress.XtraEditors.TextEdit();
|
|
|
+ this.CodeFunction = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
+ this.CodeAddress = new DevExpress.XtraEditors.TextEdit();
|
|
|
+ this.CodeLength = new DevExpress.XtraEditors.TextEdit();
|
|
|
this.CodeClientAddress_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
- this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
|
|
- this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
|
|
|
- this.labelControl4 = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.CodeFunction_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.CodeAddress_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.CodeLength_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.dc_name_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.dc_code_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.dc_name = new DevExpress.XtraEditors.TextEdit();
|
|
|
+ this.dc_code = new DevExpress.XtraEditors.TextEdit();
|
|
|
+ this.CodeComplement_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.CodeEnd_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.CodeEnd = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
+ this.CodeComplement = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.CodeClientAddress.Properties)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit2.Properties)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeFunction.Properties)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeAddress.Properties)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeLength.Properties)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dc_name.Properties)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dc_code.Properties)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeEnd.Properties)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeComplement.Properties)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// AddCommand
|
|
|
//
|
|
|
- this.AddCommand.Location = new System.Drawing.Point(230, 118);
|
|
|
+ this.AddCommand.Location = new System.Drawing.Point(347, 133);
|
|
|
this.AddCommand.Name = "AddCommand";
|
|
|
this.AddCommand.Size = new System.Drawing.Size(75, 23);
|
|
|
this.AddCommand.TabIndex = 0;
|
|
|
@@ -54,91 +66,169 @@
|
|
|
//
|
|
|
// CodeClientAddress
|
|
|
//
|
|
|
- this.CodeClientAddress.Location = new System.Drawing.Point(88, 65);
|
|
|
+ this.CodeClientAddress.Location = new System.Drawing.Point(75, 80);
|
|
|
this.CodeClientAddress.Name = "CodeClientAddress";
|
|
|
this.CodeClientAddress.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
|
|
- this.CodeClientAddress.Size = new System.Drawing.Size(50, 20);
|
|
|
+ this.CodeClientAddress.Size = new System.Drawing.Size(63, 20);
|
|
|
this.CodeClientAddress.TabIndex = 1;
|
|
|
//
|
|
|
- // comboBoxEdit2
|
|
|
+ // CodeFunction
|
|
|
//
|
|
|
- this.comboBoxEdit2.Location = new System.Drawing.Point(199, 65);
|
|
|
- this.comboBoxEdit2.Name = "comboBoxEdit2";
|
|
|
- this.comboBoxEdit2.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
+ this.CodeFunction.Location = new System.Drawing.Point(198, 80);
|
|
|
+ this.CodeFunction.Name = "CodeFunction";
|
|
|
+ this.CodeFunction.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
|
|
- this.comboBoxEdit2.Size = new System.Drawing.Size(50, 20);
|
|
|
- this.comboBoxEdit2.TabIndex = 2;
|
|
|
+ this.CodeFunction.Size = new System.Drawing.Size(63, 20);
|
|
|
+ this.CodeFunction.TabIndex = 2;
|
|
|
//
|
|
|
- // textEdit1
|
|
|
+ // CodeAddress
|
|
|
//
|
|
|
- this.textEdit1.Location = new System.Drawing.Point(307, 65);
|
|
|
- this.textEdit1.Name = "textEdit1";
|
|
|
- this.textEdit1.Size = new System.Drawing.Size(60, 20);
|
|
|
- this.textEdit1.TabIndex = 3;
|
|
|
+ this.CodeAddress.Location = new System.Drawing.Point(318, 80);
|
|
|
+ this.CodeAddress.Name = "CodeAddress";
|
|
|
+ this.CodeAddress.Size = new System.Drawing.Size(60, 20);
|
|
|
+ this.CodeAddress.TabIndex = 3;
|
|
|
//
|
|
|
- // textEdit2
|
|
|
+ // CodeLength
|
|
|
//
|
|
|
- this.textEdit2.Location = new System.Drawing.Point(437, 65);
|
|
|
- this.textEdit2.Name = "textEdit2";
|
|
|
- this.textEdit2.Size = new System.Drawing.Size(60, 20);
|
|
|
- this.textEdit2.TabIndex = 4;
|
|
|
+ this.CodeLength.Location = new System.Drawing.Point(447, 80);
|
|
|
+ this.CodeLength.Name = "CodeLength";
|
|
|
+ this.CodeLength.Size = new System.Drawing.Size(60, 20);
|
|
|
+ this.CodeLength.TabIndex = 4;
|
|
|
//
|
|
|
// CodeClientAddress_label
|
|
|
//
|
|
|
- this.CodeClientAddress_label.Location = new System.Drawing.Point(31, 68);
|
|
|
+ this.CodeClientAddress_label.Location = new System.Drawing.Point(18, 83);
|
|
|
this.CodeClientAddress_label.Name = "CodeClientAddress_label";
|
|
|
this.CodeClientAddress_label.Size = new System.Drawing.Size(48, 14);
|
|
|
this.CodeClientAddress_label.TabIndex = 5;
|
|
|
this.CodeClientAddress_label.Text = "从站地址";
|
|
|
//
|
|
|
- // labelControl2
|
|
|
+ // CodeFunction_label
|
|
|
//
|
|
|
- this.labelControl2.Location = new System.Drawing.Point(157, 68);
|
|
|
- this.labelControl2.Name = "labelControl2";
|
|
|
- this.labelControl2.Size = new System.Drawing.Size(36, 14);
|
|
|
- this.labelControl2.TabIndex = 6;
|
|
|
- this.labelControl2.Text = "命令码";
|
|
|
+ this.CodeFunction_label.Location = new System.Drawing.Point(144, 83);
|
|
|
+ this.CodeFunction_label.Name = "CodeFunction_label";
|
|
|
+ this.CodeFunction_label.Size = new System.Drawing.Size(36, 14);
|
|
|
+ this.CodeFunction_label.TabIndex = 6;
|
|
|
+ this.CodeFunction_label.Text = "命令码";
|
|
|
//
|
|
|
- // labelControl3
|
|
|
+ // CodeAddress_label
|
|
|
//
|
|
|
- this.labelControl3.Location = new System.Drawing.Point(265, 68);
|
|
|
- this.labelControl3.Name = "labelControl3";
|
|
|
- this.labelControl3.Size = new System.Drawing.Size(36, 14);
|
|
|
- this.labelControl3.TabIndex = 7;
|
|
|
- this.labelControl3.Text = "地址位";
|
|
|
+ this.CodeAddress_label.AccessibleDescription = "";
|
|
|
+ this.CodeAddress_label.Location = new System.Drawing.Point(276, 83);
|
|
|
+ this.CodeAddress_label.Name = "CodeAddress_label";
|
|
|
+ this.CodeAddress_label.Size = new System.Drawing.Size(36, 14);
|
|
|
+ this.CodeAddress_label.TabIndex = 7;
|
|
|
+ this.CodeAddress_label.Text = "地址位";
|
|
|
//
|
|
|
- // labelControl4
|
|
|
+ // CodeLength_label
|
|
|
//
|
|
|
- this.labelControl4.Location = new System.Drawing.Point(383, 68);
|
|
|
- this.labelControl4.Name = "labelControl4";
|
|
|
- this.labelControl4.Size = new System.Drawing.Size(48, 14);
|
|
|
- this.labelControl4.TabIndex = 8;
|
|
|
- this.labelControl4.Text = "操作位数";
|
|
|
+ this.CodeLength_label.Location = new System.Drawing.Point(393, 83);
|
|
|
+ this.CodeLength_label.Name = "CodeLength_label";
|
|
|
+ this.CodeLength_label.Size = new System.Drawing.Size(48, 14);
|
|
|
+ this.CodeLength_label.TabIndex = 8;
|
|
|
+ this.CodeLength_label.Text = "操作位数";
|
|
|
+ //
|
|
|
+ // dc_name_label
|
|
|
+ //
|
|
|
+ this.dc_name_label.Location = new System.Drawing.Point(144, 30);
|
|
|
+ this.dc_name_label.Name = "dc_name_label";
|
|
|
+ this.dc_name_label.Size = new System.Drawing.Size(48, 14);
|
|
|
+ this.dc_name_label.TabIndex = 12;
|
|
|
+ this.dc_name_label.Text = "指令名称";
|
|
|
+ //
|
|
|
+ // dc_code_label
|
|
|
+ //
|
|
|
+ this.dc_code_label.AccessibleDescription = "";
|
|
|
+ this.dc_code_label.Location = new System.Drawing.Point(18, 30);
|
|
|
+ this.dc_code_label.Name = "dc_code_label";
|
|
|
+ this.dc_code_label.Size = new System.Drawing.Size(48, 14);
|
|
|
+ this.dc_code_label.TabIndex = 11;
|
|
|
+ this.dc_code_label.Text = "指令编号";
|
|
|
+ //
|
|
|
+ // dc_name
|
|
|
+ //
|
|
|
+ this.dc_name.Location = new System.Drawing.Point(198, 27);
|
|
|
+ this.dc_name.Name = "dc_name";
|
|
|
+ this.dc_name.Size = new System.Drawing.Size(60, 20);
|
|
|
+ this.dc_name.TabIndex = 10;
|
|
|
+ //
|
|
|
+ // dc_code
|
|
|
+ //
|
|
|
+ this.dc_code.Location = new System.Drawing.Point(73, 27);
|
|
|
+ this.dc_code.Name = "dc_code";
|
|
|
+ this.dc_code.Size = new System.Drawing.Size(65, 20);
|
|
|
+ this.dc_code.TabIndex = 9;
|
|
|
+ //
|
|
|
+ // CodeComplement_label
|
|
|
+ //
|
|
|
+ this.CodeComplement_label.Location = new System.Drawing.Point(528, 83);
|
|
|
+ this.CodeComplement_label.Name = "CodeComplement_label";
|
|
|
+ this.CodeComplement_label.Size = new System.Drawing.Size(24, 14);
|
|
|
+ this.CodeComplement_label.TabIndex = 14;
|
|
|
+ this.CodeComplement_label.Text = "补码";
|
|
|
+ //
|
|
|
+ // CodeEnd_label
|
|
|
+ //
|
|
|
+ this.CodeEnd_label.Location = new System.Drawing.Point(646, 83);
|
|
|
+ this.CodeEnd_label.Name = "CodeEnd_label";
|
|
|
+ this.CodeEnd_label.Size = new System.Drawing.Size(36, 14);
|
|
|
+ this.CodeEnd_label.TabIndex = 16;
|
|
|
+ this.CodeEnd_label.Text = "结束位";
|
|
|
+ //
|
|
|
+ // CodeEnd
|
|
|
+ //
|
|
|
+ this.CodeEnd.Location = new System.Drawing.Point(700, 80);
|
|
|
+ this.CodeEnd.Name = "CodeEnd";
|
|
|
+ this.CodeEnd.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
|
|
+ this.CodeEnd.Size = new System.Drawing.Size(63, 20);
|
|
|
+ this.CodeEnd.TabIndex = 18;
|
|
|
+ //
|
|
|
+ // CodeComplement
|
|
|
+ //
|
|
|
+ this.CodeComplement.Location = new System.Drawing.Point(567, 80);
|
|
|
+ this.CodeComplement.Name = "CodeComplement";
|
|
|
+ this.CodeComplement.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
|
|
+ this.CodeComplement.Size = new System.Drawing.Size(63, 20);
|
|
|
+ this.CodeComplement.TabIndex = 17;
|
|
|
//
|
|
|
// FormNewCommand
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
- this.ClientSize = new System.Drawing.Size(533, 165);
|
|
|
- this.Controls.Add(this.labelControl4);
|
|
|
- this.Controls.Add(this.labelControl3);
|
|
|
- this.Controls.Add(this.labelControl2);
|
|
|
+ this.ClientSize = new System.Drawing.Size(766, 190);
|
|
|
+ this.Controls.Add(this.CodeEnd);
|
|
|
+ this.Controls.Add(this.CodeComplement);
|
|
|
+ this.Controls.Add(this.CodeEnd_label);
|
|
|
+ this.Controls.Add(this.CodeComplement_label);
|
|
|
+ this.Controls.Add(this.dc_name_label);
|
|
|
+ this.Controls.Add(this.dc_code_label);
|
|
|
+ this.Controls.Add(this.dc_name);
|
|
|
+ this.Controls.Add(this.dc_code);
|
|
|
+ this.Controls.Add(this.CodeLength_label);
|
|
|
+ this.Controls.Add(this.CodeAddress_label);
|
|
|
+ this.Controls.Add(this.CodeFunction_label);
|
|
|
this.Controls.Add(this.CodeClientAddress_label);
|
|
|
- this.Controls.Add(this.textEdit2);
|
|
|
- this.Controls.Add(this.textEdit1);
|
|
|
- this.Controls.Add(this.comboBoxEdit2);
|
|
|
+ this.Controls.Add(this.CodeLength);
|
|
|
+ this.Controls.Add(this.CodeAddress);
|
|
|
+ this.Controls.Add(this.CodeFunction);
|
|
|
this.Controls.Add(this.CodeClientAddress);
|
|
|
this.Controls.Add(this.AddCommand);
|
|
|
this.FormBorderEffect = DevExpress.XtraEditors.FormBorderEffect.None;
|
|
|
this.Name = "FormNewCommand";
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
|
- this.Text = "新增指令";
|
|
|
+ this.Text = " ";
|
|
|
this.Load += new System.EventHandler(this.FormNewCommand_Load);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.CodeClientAddress.Properties)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit2.Properties)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeFunction.Properties)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeAddress.Properties)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeLength.Properties)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dc_name.Properties)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dc_code.Properties)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeEnd.Properties)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CodeComplement.Properties)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
|
|
|
|
@@ -148,12 +238,20 @@
|
|
|
|
|
|
private DevExpress.XtraEditors.SimpleButton AddCommand;
|
|
|
private DevExpress.XtraEditors.ComboBoxEdit CodeClientAddress;
|
|
|
- private DevExpress.XtraEditors.ComboBoxEdit comboBoxEdit2;
|
|
|
- private DevExpress.XtraEditors.TextEdit textEdit1;
|
|
|
- private DevExpress.XtraEditors.TextEdit textEdit2;
|
|
|
+ private DevExpress.XtraEditors.ComboBoxEdit CodeFunction;
|
|
|
+ private DevExpress.XtraEditors.TextEdit CodeAddress;
|
|
|
+ private DevExpress.XtraEditors.TextEdit CodeLength;
|
|
|
private DevExpress.XtraEditors.LabelControl CodeClientAddress_label;
|
|
|
- private DevExpress.XtraEditors.LabelControl labelControl2;
|
|
|
- private DevExpress.XtraEditors.LabelControl labelControl3;
|
|
|
- private DevExpress.XtraEditors.LabelControl labelControl4;
|
|
|
+ private DevExpress.XtraEditors.LabelControl CodeFunction_label;
|
|
|
+ private DevExpress.XtraEditors.LabelControl CodeAddress_label;
|
|
|
+ private DevExpress.XtraEditors.LabelControl CodeLength_label;
|
|
|
+ private DevExpress.XtraEditors.LabelControl dc_name_label;
|
|
|
+ private DevExpress.XtraEditors.LabelControl dc_code_label;
|
|
|
+ private DevExpress.XtraEditors.TextEdit dc_name;
|
|
|
+ private DevExpress.XtraEditors.TextEdit dc_code;
|
|
|
+ private DevExpress.XtraEditors.LabelControl CodeComplement_label;
|
|
|
+ private DevExpress.XtraEditors.LabelControl CodeEnd_label;
|
|
|
+ private DevExpress.XtraEditors.ComboBoxEdit CodeEnd;
|
|
|
+ private DevExpress.XtraEditors.ComboBoxEdit CodeComplement;
|
|
|
}
|
|
|
}
|