@ -29,21 +29,21 @@
private void InitializeComponent ( )
{
this . label1 = new System . Windows . Forms . Label ( ) ;
this . txtWeightComName 0 = new System . Windows . Forms . TextBox ( ) ;
this . txtWeightComName = new System . Windows . Forms . TextBox ( ) ;
this . label2 = new System . Windows . Forms . Label ( ) ;
this . btnOk = new System . Windows . Forms . Button ( ) ;
this . btnCancel = new System . Windows . Forms . Button ( ) ;
this . cbbps = new System . Windows . Forms . ComboBox ( ) ;
this . txtWeightComName1 = new System . Windows . Forms . TextBox ( ) ;
this . label3 = new System . Windows . Forms . Label ( ) ;
this . txtWeightComName2 = new System . Windows . Forms . TextBox ( ) ;
this . txtSetSingleUpperLimit = new System . Windows . Forms . TextBox ( ) ;
this . txtSetAdjustmentUpperLimit = new System . Windows . Forms . TextBox ( ) ;
this . label4 = new System . Windows . Forms . Label ( ) ;
this . txt WeightComName3 = new System . Windows . Forms . TextBox ( ) ;
this . txt SetStandard Weight = new System . Windows . Forms . TextBox ( ) ;
this . label5 = new System . Windows . Forms . Label ( ) ;
this . chbEnable0 = new System . Windows . Forms . Check Box( ) ;
this . chbEnable1 = new System . Windows . Forms . CheckBox ( ) ;
this . chbEnable2 = new System . Windows . Forms . Check Box( ) ;
this . chbEnable3 = new System . Windows . Forms . CheckBox ( ) ;
this . txtSetAdjustmentLowerLimit = new System . Windows . Forms . Text Box( ) ;
this . label6 = new System . Windows . Forms . Label ( ) ;
this . txtSetSingleLowerLimit = new System . Windows . Forms . Text Box( ) ;
this . label7 = new System . Windows . Forms . Label ( ) ;
this . SuspendLayout ( ) ;
//
// label1
@ -55,25 +55,25 @@
this . label1 . TabIndex = 0 ;
this . label1 . Text = "波特率: " ;
//
// txtWeightComName 0
// txtWeightComName
//
this . txtWeightComName 0 . Location = new System . Drawing . Point ( 1 26, 53 ) ;
this . txtWeightComName 0 . Name = "txtWeightComName 0 ";
this . txtWeightComName 0 . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtWeightComName 0 . TabIndex = 1 ;
this . txtWeightComName . Location = new System . Drawing . Point ( 1 57, 50 ) ;
this . txtWeightComName . Name = "txtWeightComName ";
this . txtWeightComName . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtWeightComName . TabIndex = 1 ;
//
// label2
//
this . label2 . AutoSize = true ;
this . label2 . Location = new System . Drawing . Point ( 12 , 5 6 ) ;
this . label2 . Location = new System . Drawing . Point ( 12 , 5 3 ) ;
this . label2 . Name = "label2" ;
this . label2 . Size = new System . Drawing . Size ( 1 15 , 27 ) ;
this . label2 . Size = new System . Drawing . Size ( 1 03 , 27 ) ;
this . label2 . TabIndex = 2 ;
this . label2 . Text = "设备 1 端口: ";
this . label2 . Text = "设备 端口: ";
//
// btnOk
//
this . btnOk . Location = new System . Drawing . Point ( 1 99, 223 ) ;
this . btnOk . Location = new System . Drawing . Point ( 1 57, 307 ) ;
this . btnOk . Name = "btnOk" ;
this . btnOk . Size = new System . Drawing . Size ( 102 , 42 ) ;
this . btnOk . TabIndex = 5 ;
@ -83,7 +83,7 @@
//
// btnCancel
//
this . btnCancel . Location = new System . Drawing . Point ( 33 2, 22 3) ;
this . btnCancel . Location = new System . Drawing . Point ( 290 , 307 ) ;
this . btnCancel . Name = "btnCancel" ;
this . btnCancel . Size = new System . Drawing . Size ( 102 , 42 ) ;
this . btnCancel . TabIndex = 6 ;
@ -100,119 +100,111 @@
"19200" ,
"38400" ,
"115200" } ) ;
this . cbbps . Location = new System . Drawing . Point ( 1 26 , 14 ) ;
this . cbbps . Location = new System . Drawing . Point ( 1 57 , 14 ) ;
this . cbbps . Name = "cbbps" ;
this . cbbps . Size = new System . Drawing . Size ( 235 , 29 ) ;
this . cbbps . TabIndex = 0 ;
//
// txtWeightComName1
//
this . txtWeightComName1 . Location = new System . Drawing . Point ( 126 , 93 ) ;
this . txtWeightComName1 . Name = "txtWeightComName1" ;
this . txtWeightComName1 . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtWeightComName1 . TabIndex = 2 ;
//
// label3
//
this . label3 . AutoSize = true ;
this . label3 . Location = new System . Drawing . Point ( 12 , 9 6 ) ;
this . label3 . Location = new System . Drawing . Point ( 12 , 90 ) ;
this . label3 . Name = "label3" ;
this . label3 . Size = new System . Drawing . Size ( 115 , 27 ) ;
this . label3 . TabIndex = 6 ;
this . label3 . Text = "设备2端口: " ;
this . label3 . Size = new System . Drawing . Size ( 137 , 27 ) ;
this . label3 . TabIndex = 7 ;
this . label3 . Text = "设置单重上限:" ;
//
// txtSetSingleUpperLimit
//
// txtWeightComName2
this . txtSetSingleUpperLimit . Location = new System . Drawing . Point ( 157 , 90 ) ;
this . txtSetSingleUpperLimit . Name = "txtSetSingleUpperLimit" ;
this . txtSetSingleUpperLimit . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtSetSingleUpperLimit . TabIndex = 8 ;
//
this . txtWeightComName2 . Location = new System . Drawing . Point ( 126 , 133 ) ;
this . txtWeightComName2 . Name = "txtWeightComName2" ;
this . txtWeightComName2 . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtWeightComName2 . TabIndex = 3 ;
// txtSetAdjustmentUpperLimit
//
this . txtSetAdjustmentUpperLimit . Location = new System . Drawing . Point ( 157 , 128 ) ;
this . txtSetAdjustmentUpperLimit . Name = "txtSetAdjustmentUpperLimit" ;
this . txtSetAdjustmentUpperLimit . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtSetAdjustmentUpperLimit . TabIndex = 10 ;
//
// label4
//
this . label4 . AutoSize = true ;
this . label4 . Location = new System . Drawing . Point ( 12 , 1 36 ) ;
this . label4 . Location = new System . Drawing . Point ( 12 , 1 28 ) ;
this . label4 . Name = "label4" ;
this . label4 . Size = new System . Drawing . Size ( 1 1 5, 27 ) ;
this . label4 . TabIndex = 8 ;
this . label4 . Text = "设 备3端口: ";
this . label4 . Size = new System . Drawing . Size ( 1 52 , 27 ) ;
this . label4 . TabIndex = 9 ;
this . label4 . Text = "设 置调整上限: ";
//
// txt WeightComName3
// txt SetStandard Weight
//
this . txt WeightComName3 . Location = new System . Drawing . Point ( 1 26, 173 ) ;
this . txt WeightComName3 . Name = "txt WeightComName3 ";
this . txt WeightComName3 . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txt WeightComName3. TabIndex = 4 ;
this . txt SetStandard Weight. Location = new System . Drawing . Point ( 1 57, 167 ) ;
this . txt SetStandard Weight. Name = "txt SetStandard Weight";
this . txt SetStandard Weight. Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txt SetStandardWeight. TabIndex = 12 ;
//
// label5
//
this . label5 . AutoSize = true ;
this . label5 . Location = new System . Drawing . Point ( 12 , 1 7 6) ;
this . label5 . Location = new System . Drawing . Point ( 12 , 1 67 ) ;
this . label5 . Name = "label5" ;
this . label5 . Size = new System . Drawing . Size ( 115 , 27 ) ;
this . label5 . TabIndex = 10 ;
this . label5 . Text = "设备4端口: " ;
//
// chbEnable0
//
this . chbEnable0 . AutoSize = true ;
this . chbEnable0 . Location = new System . Drawing . Point ( 367 , 56 ) ;
this . chbEnable0 . Name = "chbEnable0" ;
this . chbEnable0 . Size = new System . Drawing . Size ( 71 , 31 ) ;
this . chbEnable0 . TabIndex = 11 ;
this . chbEnable0 . Text = "启用" ;
this . chbEnable0 . UseVisualStyleBackColor = true ;
//
// chbEnable1
//
this . chbEnable1 . AutoSize = true ;
this . chbEnable1 . Location = new System . Drawing . Point ( 367 , 96 ) ;
this . chbEnable1 . Name = "chbEnable1" ;
this . chbEnable1 . Size = new System . Drawing . Size ( 71 , 31 ) ;
this . chbEnable1 . TabIndex = 12 ;
this . chbEnable1 . Text = "启用" ;
this . chbEnable1 . UseVisualStyleBackColor = true ;
//
// chbEnable2
//
this . chbEnable2 . AutoSize = true ;
this . chbEnable2 . Location = new System . Drawing . Point ( 367 , 136 ) ;
this . chbEnable2 . Name = "chbEnable2" ;
this . chbEnable2 . Size = new System . Drawing . Size ( 71 , 31 ) ;
this . chbEnable2 . TabIndex = 13 ;
this . chbEnable2 . Text = "启用" ;
this . chbEnable2 . UseVisualStyleBackColor = true ;
//
// chbEnable3
//
this . chbEnable3 . AutoSize = true ;
this . chbEnable3 . Location = new System . Drawing . Point ( 367 , 176 ) ;
this . chbEnable3 . Name = "chbEnable3" ;
this . chbEnable3 . Size = new System . Drawing . Size ( 71 , 31 ) ;
this . chbEnable3 . TabIndex = 14 ;
this . chbEnable3 . Text = "启用" ;
this . chbEnable3 . UseVisualStyleBackColor = true ;
this . label5 . Size = new System . Drawing . Size ( 137 , 27 ) ;
this . label5 . TabIndex = 11 ;
this . label5 . Text = "设置标准重量:" ;
//
// txtSetAdjustmentLowerLimit
//
this . txtSetAdjustmentLowerLimit . Location = new System . Drawing . Point ( 157 , 207 ) ;
this . txtSetAdjustmentLowerLimit . Name = "txtSetAdjustmentLowerLimit" ;
this . txtSetAdjustmentLowerLimit . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtSetAdjustmentLowerLimit . TabIndex = 14 ;
//
// label6
//
this . label6 . AutoSize = true ;
this . label6 . Location = new System . Drawing . Point ( 12 , 207 ) ;
this . label6 . Name = "label6" ;
this . label6 . Size = new System . Drawing . Size ( 137 , 27 ) ;
this . label6 . TabIndex = 13 ;
this . label6 . Text = "设置调整下限:" ;
//
// txtSetSingleLowerLimit
//
this . txtSetSingleLowerLimit . Location = new System . Drawing . Point ( 157 , 247 ) ;
this . txtSetSingleLowerLimit . Name = "txtSetSingleLowerLimit" ;
this . txtSetSingleLowerLimit . Size = new System . Drawing . Size ( 235 , 34 ) ;
this . txtSetSingleLowerLimit . TabIndex = 16 ;
//
// label7
//
this . label7 . AutoSize = true ;
this . label7 . Location = new System . Drawing . Point ( 12 , 247 ) ;
this . label7 . Name = "label7" ;
this . label7 . Size = new System . Drawing . Size ( 137 , 27 ) ;
this . label7 . TabIndex = 15 ;
this . label7 . Text = "设置单重下限:" ;
//
// frmWeightPort
//
this . AutoScaleDimensions = new System . Drawing . SizeF ( 12F , 27F ) ;
this . AutoScaleMode = System . Windows . Forms . AutoScaleMode . Font ;
this . BackColor = System . Drawing . Color . FromArgb ( ( ( int ) ( ( ( byte ) ( 192 ) ) ) ) , ( ( int ) ( ( ( byte ) ( 192 ) ) ) ) , ( ( int ) ( ( ( byte ) ( 255 ) ) ) ) ) ;
this . ClientSize = new System . Drawing . Size ( 4 47, 28 7) ;
this . Controls . Add ( this . chbEnable3 ) ;
this . Controls . Add ( this . chbEnable2 ) ;
this . Controls . Add ( this . chbEnable1 ) ;
this . Controls . Add ( this . chbEnable0 ) ;
this . Controls . Add ( this . txt WeightComName3 ) ;
this . ClientSize = new System . Drawing . Size ( 428 , 367 ) ;
this . Controls . Add ( this . txtSetSingleLowerLimit ) ;
this . Controls . Add ( this . label7 ) ;
this . Controls . Add ( this . txtSetAdjustmentLowerLimit ) ;
this . Controls . Add ( this . label6 ) ;
this . Controls . Add ( this . txt SetStandard Weight) ;
this . Controls . Add ( this . label5 ) ;
this . Controls . Add ( this . txt WeightComName2 ) ;
this . Controls . Add ( this . txt SetAdjustmentUpperLimit ) ;
this . Controls . Add ( this . label4 ) ;
this . Controls . Add ( this . txt WeightComName1 ) ;
this . Controls . Add ( this . txt SetSingleUpperLimit ) ;
this . Controls . Add ( this . label3 ) ;
this . Controls . Add ( this . cbbps ) ;
this . Controls . Add ( this . btnCancel ) ;
this . Controls . Add ( this . btnOk ) ;
this . Controls . Add ( this . txtWeightComName 0 ) ;
this . Controls . Add ( this . txtWeightComName ) ;
this . Controls . Add ( this . label2 ) ;
this . Controls . Add ( this . label1 ) ;
this . Font = new System . Drawing . Font ( "微软雅黑" , 15F , System . Drawing . FontStyle . Regular , System . Drawing . GraphicsUnit . Point , ( ( byte ) ( 0 ) ) ) ;
@ -230,20 +222,20 @@
# endregion
private System . Windows . Forms . Label label1 ;
private System . Windows . Forms . TextBox txtWeightComName 0 ;
private System . Windows . Forms . TextBox txtWeightComName ;
private System . Windows . Forms . Label label2 ;
private System . Windows . Forms . Button btnOk ;
private System . Windows . Forms . Button btnCancel ;
private System . Windows . Forms . ComboBox cbbps ;
private System . Windows . Forms . TextBox txtWeightComName1 ;
private System . Windows . Forms . Label label3 ;
private System . Windows . Forms . TextBox txtWeightComName2 ;
private System . Windows . Forms . TextBox txtSetSingleUpperLimit ;
private System . Windows . Forms . TextBox txtSetAdjustmentUpperLimit ;
private System . Windows . Forms . Label label4 ;
private System . Windows . Forms . TextBox txt WeightComName3 ;
private System . Windows . Forms . TextBox txt SetStandard Weight;
private System . Windows . Forms . Label label5 ;
private System . Windows . Forms . CheckBox chbEnable0 ;
private System . Windows . Forms . CheckBox chbEnable1 ;
private System . Windows . Forms . CheckBox chbEnable2 ;
private System . Windows . Forms . CheckBox chbEnable3 ;
private System . Windows . Forms . TextBox txtSetAdjustmentLowerLimit ;
private System . Windows . Forms . Label label6 ;
private System . Windows . Forms . TextBox txtSetSingleLowerLimit ;
private System . Windows . Forms . Label label7 ;
}
}