|
|
@@ -205,6 +205,7 @@
|
|
|
this.SN.TabIndex = 37;
|
|
|
this.SN.Text = "扫描SN";
|
|
|
this.SN.UseVisualStyleBackColor = true;
|
|
|
+ this.SN.CheckedChanged += new System.EventHandler(this.SN_CheckedChanged);
|
|
|
//
|
|
|
// Counter
|
|
|
//
|
|
|
@@ -217,6 +218,7 @@
|
|
|
this.Counter.TabStop = true;
|
|
|
this.Counter.Text = "计数器";
|
|
|
this.Counter.UseVisualStyleBackColor = true;
|
|
|
+ this.Counter.CheckedChanged += new System.EventHandler(this.Counter_CheckedChanged);
|
|
|
//
|
|
|
// StopWatch
|
|
|
//
|
|
|
@@ -245,13 +247,13 @@
|
|
|
//
|
|
|
// BaudRate
|
|
|
//
|
|
|
+ this.BaudRate.Enabled = false;
|
|
|
this.BaudRate.Location = new System.Drawing.Point(1020, 229);
|
|
|
this.BaudRate.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
this.BaudRate.Name = "BaudRate";
|
|
|
this.BaudRate.Size = new System.Drawing.Size(146, 35);
|
|
|
this.BaudRate.TabIndex = 43;
|
|
|
this.BaudRate.Text = "9600";
|
|
|
- this.BaudRate.Visible = false;
|
|
|
//
|
|
|
// BaudRate_label
|
|
|
//
|
|
|
@@ -263,7 +265,6 @@
|
|
|
this.BaudRate_label.Size = new System.Drawing.Size(104, 38);
|
|
|
this.BaudRate_label.TabIndex = 42;
|
|
|
this.BaudRate_label.Text = "波特率";
|
|
|
- this.BaudRate_label.Visible = false;
|
|
|
//
|
|
|
// ComPort_label
|
|
|
//
|
|
|
@@ -275,7 +276,6 @@
|
|
|
this.ComPort_label.Size = new System.Drawing.Size(75, 38);
|
|
|
this.ComPort_label.TabIndex = 41;
|
|
|
this.ComPort_label.Text = "串口";
|
|
|
- this.ComPort_label.Visible = false;
|
|
|
//
|
|
|
// Timer
|
|
|
//
|
|
|
@@ -307,12 +307,12 @@
|
|
|
//
|
|
|
// Read
|
|
|
//
|
|
|
+ this.Read.Enabled = false;
|
|
|
this.Read.Location = new System.Drawing.Point(1018, 286);
|
|
|
this.Read.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
this.Read.Name = "Read";
|
|
|
this.Read.Size = new System.Drawing.Size(146, 35);
|
|
|
this.Read.TabIndex = 47;
|
|
|
- this.Read.Visible = false;
|
|
|
//
|
|
|
// Read_label
|
|
|
//
|
|
|
@@ -324,16 +324,15 @@
|
|
|
this.Read_label.Size = new System.Drawing.Size(75, 38);
|
|
|
this.Read_label.TabIndex = 46;
|
|
|
this.Read_label.Text = "读取";
|
|
|
- this.Read_label.Visible = false;
|
|
|
//
|
|
|
// Write
|
|
|
//
|
|
|
+ this.Write.Enabled = false;
|
|
|
this.Write.Location = new System.Drawing.Point(1018, 338);
|
|
|
this.Write.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
this.Write.Name = "Write";
|
|
|
this.Write.Size = new System.Drawing.Size(146, 35);
|
|
|
this.Write.TabIndex = 49;
|
|
|
- this.Write.Visible = false;
|
|
|
//
|
|
|
// Write_label
|
|
|
//
|
|
|
@@ -345,16 +344,15 @@
|
|
|
this.Write_label.Size = new System.Drawing.Size(75, 38);
|
|
|
this.Write_label.TabIndex = 48;
|
|
|
this.Write_label.Text = "回写";
|
|
|
- this.Write_label.Visible = false;
|
|
|
//
|
|
|
// ToZero
|
|
|
//
|
|
|
+ this.ToZero.Enabled = false;
|
|
|
this.ToZero.Location = new System.Drawing.Point(1018, 394);
|
|
|
this.ToZero.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
this.ToZero.Name = "ToZero";
|
|
|
this.ToZero.Size = new System.Drawing.Size(146, 35);
|
|
|
this.ToZero.TabIndex = 51;
|
|
|
- this.ToZero.Visible = false;
|
|
|
//
|
|
|
// ToZero_label
|
|
|
//
|
|
|
@@ -366,7 +364,6 @@
|
|
|
this.ToZero_label.Size = new System.Drawing.Size(75, 38);
|
|
|
this.ToZero_label.TabIndex = 50;
|
|
|
this.ToZero_label.Text = "清零";
|
|
|
- this.ToZero_label.Visible = false;
|
|
|
//
|
|
|
// CleanData
|
|
|
//
|
|
|
@@ -403,11 +400,11 @@
|
|
|
this.CountType_label.Size = new System.Drawing.Size(133, 38);
|
|
|
this.CountType_label.TabIndex = 55;
|
|
|
this.CountType_label.Text = "计数方式";
|
|
|
- this.CountType_label.Visible = false;
|
|
|
//
|
|
|
// CountType
|
|
|
//
|
|
|
this.CountType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.CountType.Enabled = false;
|
|
|
this.CountType.FormattingEnabled = true;
|
|
|
this.CountType.Items.AddRange(new object[] {
|
|
|
"PLC",
|
|
|
@@ -416,16 +413,15 @@
|
|
|
this.CountType.Name = "CountType";
|
|
|
this.CountType.Size = new System.Drawing.Size(137, 32);
|
|
|
this.CountType.TabIndex = 54;
|
|
|
- this.CountType.Visible = false;
|
|
|
//
|
|
|
// UseScan
|
|
|
//
|
|
|
+ this.UseScan.Enabled = false;
|
|
|
this.UseScan.Location = new System.Drawing.Point(1018, 445);
|
|
|
this.UseScan.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
this.UseScan.Name = "UseScan";
|
|
|
this.UseScan.Size = new System.Drawing.Size(146, 35);
|
|
|
this.UseScan.TabIndex = 57;
|
|
|
- this.UseScan.Visible = false;
|
|
|
//
|
|
|
// UseScan_label
|
|
|
//
|
|
|
@@ -437,7 +433,6 @@
|
|
|
this.UseScan_label.Size = new System.Drawing.Size(133, 38);
|
|
|
this.UseScan_label.TabIndex = 56;
|
|
|
this.UseScan_label.Text = "启用扫描";
|
|
|
- this.UseScan_label.Visible = false;
|
|
|
//
|
|
|
// Password
|
|
|
//
|
|
|
@@ -461,12 +456,12 @@
|
|
|
//
|
|
|
// ComPort
|
|
|
//
|
|
|
+ this.ComPort.Enabled = false;
|
|
|
this.ComPort.Location = new System.Drawing.Point(1018, 181);
|
|
|
this.ComPort.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
|
this.ComPort.Name = "ComPort";
|
|
|
this.ComPort.Size = new System.Drawing.Size(148, 40);
|
|
|
this.ComPort.TabIndex = 40;
|
|
|
- this.ComPort.Visible = false;
|
|
|
//
|
|
|
// ms_sncode
|
|
|
//
|