402 lines
19 KiB
C#
402 lines
19 KiB
C#
namespace C_Windows_1
|
|
{
|
|
partial class PortSetting
|
|
{
|
|
/// <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.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortSetting));
|
|
this.Baudrate = new System.Windows.Forms.ComboBox();
|
|
this.PortNum = new System.Windows.Forms.ComboBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.BtnCon1 = new System.Windows.Forms.Button();
|
|
this.BtnRefresh = new System.Windows.Forms.Button();
|
|
this.BtnBreak = new System.Windows.Forms.Button();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.ReceiveText = new System.Windows.Forms.TextBox();
|
|
this.SendText = new System.Windows.Forms.TextBox();
|
|
this.TestPort1 = new System.IO.Ports.SerialPort(this.components);
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
this.CodePort1 = new System.Windows.Forms.ComboBox();
|
|
this.CodeBaud1 = new System.Windows.Forms.ComboBox();
|
|
this.label7 = new System.Windows.Forms.Label();
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
this.CodeIsComm1 = new System.Windows.Forms.Label();
|
|
this.label10 = new System.Windows.Forms.Label();
|
|
this.PortBtnCon1 = new System.Windows.Forms.Button();
|
|
this.PortBtnRefresh = new System.Windows.Forms.Button();
|
|
this.PortBtnBreak = new System.Windows.Forms.Button();
|
|
this.CodePort = new System.IO.Ports.SerialPort(this.components);
|
|
this.label9 = new System.Windows.Forms.Label();
|
|
this.CeckScanning = new System.Windows.Forms.CheckBox();
|
|
this.SuspendLayout();
|
|
//
|
|
// Baudrate
|
|
//
|
|
this.Baudrate.FormattingEnabled = true;
|
|
this.Baudrate.Items.AddRange(new object[] {
|
|
"9600",
|
|
"115200",
|
|
"2400",
|
|
"4800",
|
|
"19200",
|
|
"38400"});
|
|
this.Baudrate.Location = new System.Drawing.Point(39, 109);
|
|
this.Baudrate.Margin = new System.Windows.Forms.Padding(4);
|
|
this.Baudrate.Name = "Baudrate";
|
|
this.Baudrate.Size = new System.Drawing.Size(137, 24);
|
|
this.Baudrate.TabIndex = 68;
|
|
this.Baudrate.SelectedIndexChanged += new System.EventHandler(this.Baudrate_SelectedIndexChanged);
|
|
//
|
|
// PortNum
|
|
//
|
|
this.PortNum.FormattingEnabled = true;
|
|
this.PortNum.Location = new System.Drawing.Point(39, 47);
|
|
this.PortNum.Margin = new System.Windows.Forms.Padding(4);
|
|
this.PortNum.Name = "PortNum";
|
|
this.PortNum.Size = new System.Drawing.Size(137, 24);
|
|
this.PortNum.TabIndex = 67;
|
|
this.PortNum.SelectedIndexChanged += new System.EventHandler(this.PortNum_SelectedIndexChanged);
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(37, 22);
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(87, 16);
|
|
this.label1.TabIndex = 65;
|
|
this.label1.Text = "仪器端口号";
|
|
this.label1.Click += new System.EventHandler(this.label1_Click);
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(37, 83);
|
|
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(55, 16);
|
|
this.label2.TabIndex = 66;
|
|
this.label2.Text = "波特率";
|
|
this.label2.Click += new System.EventHandler(this.label2_Click);
|
|
//
|
|
// BtnCon1
|
|
//
|
|
this.BtnCon1.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.BtnCon1.Location = new System.Drawing.Point(40, 264);
|
|
this.BtnCon1.Name = "BtnCon1";
|
|
this.BtnCon1.Size = new System.Drawing.Size(111, 42);
|
|
this.BtnCon1.TabIndex = 72;
|
|
this.BtnCon1.Text = "连接串口";
|
|
this.BtnCon1.UseVisualStyleBackColor = true;
|
|
this.BtnCon1.Click += new System.EventHandler(this.BtnCon1_Click);
|
|
//
|
|
// BtnRefresh
|
|
//
|
|
this.BtnRefresh.Location = new System.Drawing.Point(40, 311);
|
|
this.BtnRefresh.Name = "BtnRefresh";
|
|
this.BtnRefresh.Size = new System.Drawing.Size(111, 42);
|
|
this.BtnRefresh.TabIndex = 70;
|
|
this.BtnRefresh.Text = "刷新串口";
|
|
this.BtnRefresh.UseVisualStyleBackColor = true;
|
|
this.BtnRefresh.Click += new System.EventHandler(this.BtnRefresh_Click);
|
|
//
|
|
// BtnBreak
|
|
//
|
|
this.BtnBreak.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.BtnBreak.Location = new System.Drawing.Point(40, 359);
|
|
this.BtnBreak.Name = "BtnBreak";
|
|
this.BtnBreak.Size = new System.Drawing.Size(111, 42);
|
|
this.BtnBreak.TabIndex = 73;
|
|
this.BtnBreak.Text = "断开连接";
|
|
this.BtnBreak.UseVisualStyleBackColor = true;
|
|
this.BtnBreak.Click += new System.EventHandler(this.BtnBreak_Click);
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.label3.Location = new System.Drawing.Point(63, 147);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(87, 16);
|
|
this.label3.TabIndex = 75;
|
|
this.label3.Text = "串口状态:";
|
|
this.label3.Click += new System.EventHandler(this.label3_Click);
|
|
//
|
|
// label6
|
|
//
|
|
this.label6.AutoSize = true;
|
|
this.label6.Font = new System.Drawing.Font("宋体", 14F);
|
|
this.label6.Location = new System.Drawing.Point(66, 173);
|
|
this.label6.Name = "label6";
|
|
this.label6.Size = new System.Drawing.Size(69, 19);
|
|
this.label6.TabIndex = 74;
|
|
this.label6.Text = "label6";
|
|
this.label6.Click += new System.EventHandler(this.label6_Click);
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.label4.Location = new System.Drawing.Point(63, 206);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(87, 16);
|
|
this.label4.TabIndex = 77;
|
|
this.label4.Text = "通讯状态:";
|
|
this.label4.Click += new System.EventHandler(this.label4_Click);
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.AutoSize = true;
|
|
this.label5.Font = new System.Drawing.Font("宋体", 14F);
|
|
this.label5.Location = new System.Drawing.Point(66, 231);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(69, 19);
|
|
this.label5.TabIndex = 76;
|
|
this.label5.Text = "label5";
|
|
this.label5.Click += new System.EventHandler(this.label5_Click);
|
|
//
|
|
// ReceiveText
|
|
//
|
|
this.ReceiveText.Location = new System.Drawing.Point(443, 184);
|
|
this.ReceiveText.Multiline = true;
|
|
this.ReceiveText.Name = "ReceiveText";
|
|
this.ReceiveText.Size = new System.Drawing.Size(131, 55);
|
|
this.ReceiveText.TabIndex = 79;
|
|
this.ReceiveText.Visible = false;
|
|
this.ReceiveText.TextChanged += new System.EventHandler(this.ReceiveText_TextChanged);
|
|
//
|
|
// SendText
|
|
//
|
|
this.SendText.Location = new System.Drawing.Point(443, 109);
|
|
this.SendText.Multiline = true;
|
|
this.SendText.Name = "SendText";
|
|
this.SendText.Size = new System.Drawing.Size(131, 55);
|
|
this.SendText.TabIndex = 78;
|
|
this.SendText.Visible = false;
|
|
//
|
|
// TestPort1
|
|
//
|
|
this.TestPort1.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.TestPort1_DataReceived);
|
|
//
|
|
// timer1
|
|
//
|
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|
//
|
|
// CodePort1
|
|
//
|
|
this.CodePort1.FormattingEnabled = true;
|
|
this.CodePort1.Location = new System.Drawing.Point(216, 47);
|
|
this.CodePort1.Margin = new System.Windows.Forms.Padding(4);
|
|
this.CodePort1.Name = "CodePort1";
|
|
this.CodePort1.Size = new System.Drawing.Size(137, 24);
|
|
this.CodePort1.TabIndex = 80;
|
|
this.CodePort1.SelectedIndexChanged += new System.EventHandler(this.CodePort1_SelectedIndexChanged);
|
|
//
|
|
// CodeBaud1
|
|
//
|
|
this.CodeBaud1.FormattingEnabled = true;
|
|
this.CodeBaud1.Items.AddRange(new object[] {
|
|
"9600"});
|
|
this.CodeBaud1.Location = new System.Drawing.Point(216, 109);
|
|
this.CodeBaud1.Margin = new System.Windows.Forms.Padding(4);
|
|
this.CodeBaud1.Name = "CodeBaud1";
|
|
this.CodeBaud1.Size = new System.Drawing.Size(137, 24);
|
|
this.CodeBaud1.TabIndex = 81;
|
|
this.CodeBaud1.SelectedIndexChanged += new System.EventHandler(this.CodeBaud1_SelectedIndexChanged);
|
|
//
|
|
// label7
|
|
//
|
|
this.label7.AutoSize = true;
|
|
this.label7.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.label7.Location = new System.Drawing.Point(248, 148);
|
|
this.label7.Name = "label7";
|
|
this.label7.Size = new System.Drawing.Size(87, 16);
|
|
this.label7.TabIndex = 82;
|
|
this.label7.Text = "串口状态:";
|
|
this.label7.Click += new System.EventHandler(this.label7_Click);
|
|
//
|
|
// label8
|
|
//
|
|
this.label8.AutoSize = true;
|
|
this.label8.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.label8.Location = new System.Drawing.Point(454, 264);
|
|
this.label8.Name = "label8";
|
|
this.label8.Size = new System.Drawing.Size(87, 16);
|
|
this.label8.TabIndex = 83;
|
|
this.label8.Text = "通讯状态:";
|
|
this.label8.Visible = false;
|
|
//
|
|
// CodeIsComm1
|
|
//
|
|
this.CodeIsComm1.AutoSize = true;
|
|
this.CodeIsComm1.Font = new System.Drawing.Font("宋体", 14F);
|
|
this.CodeIsComm1.Location = new System.Drawing.Point(247, 173);
|
|
this.CodeIsComm1.Name = "CodeIsComm1";
|
|
this.CodeIsComm1.Size = new System.Drawing.Size(69, 19);
|
|
this.CodeIsComm1.TabIndex = 84;
|
|
this.CodeIsComm1.Text = "label9";
|
|
this.CodeIsComm1.Click += new System.EventHandler(this.CodeIsComm1_Click);
|
|
//
|
|
// label10
|
|
//
|
|
this.label10.AutoSize = true;
|
|
this.label10.Font = new System.Drawing.Font("宋体", 14F);
|
|
this.label10.Location = new System.Drawing.Point(453, 289);
|
|
this.label10.Name = "label10";
|
|
this.label10.Size = new System.Drawing.Size(79, 19);
|
|
this.label10.TabIndex = 85;
|
|
this.label10.Text = "label10";
|
|
this.label10.Visible = false;
|
|
//
|
|
// PortBtnCon1
|
|
//
|
|
this.PortBtnCon1.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.PortBtnCon1.Location = new System.Drawing.Point(225, 264);
|
|
this.PortBtnCon1.Name = "PortBtnCon1";
|
|
this.PortBtnCon1.Size = new System.Drawing.Size(111, 42);
|
|
this.PortBtnCon1.TabIndex = 86;
|
|
this.PortBtnCon1.Text = "连接串口";
|
|
this.PortBtnCon1.UseVisualStyleBackColor = true;
|
|
this.PortBtnCon1.Click += new System.EventHandler(this.PortBtnCon1_Click);
|
|
//
|
|
// PortBtnRefresh
|
|
//
|
|
this.PortBtnRefresh.Location = new System.Drawing.Point(225, 312);
|
|
this.PortBtnRefresh.Name = "PortBtnRefresh";
|
|
this.PortBtnRefresh.Size = new System.Drawing.Size(111, 42);
|
|
this.PortBtnRefresh.TabIndex = 87;
|
|
this.PortBtnRefresh.Text = "刷新串口";
|
|
this.PortBtnRefresh.UseVisualStyleBackColor = true;
|
|
this.PortBtnRefresh.Click += new System.EventHandler(this.PortBtnRefresh_Click);
|
|
//
|
|
// PortBtnBreak
|
|
//
|
|
this.PortBtnBreak.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.PortBtnBreak.Location = new System.Drawing.Point(225, 360);
|
|
this.PortBtnBreak.Name = "PortBtnBreak";
|
|
this.PortBtnBreak.Size = new System.Drawing.Size(111, 42);
|
|
this.PortBtnBreak.TabIndex = 88;
|
|
this.PortBtnBreak.Text = "断开连接";
|
|
this.PortBtnBreak.UseVisualStyleBackColor = true;
|
|
this.PortBtnBreak.Click += new System.EventHandler(this.PortBtnBreak_Click);
|
|
//
|
|
// label9
|
|
//
|
|
this.label9.AutoSize = true;
|
|
this.label9.Location = new System.Drawing.Point(222, 22);
|
|
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label9.Name = "label9";
|
|
this.label9.Size = new System.Drawing.Size(103, 16);
|
|
this.label9.TabIndex = 89;
|
|
this.label9.Text = "扫码枪端口号";
|
|
this.label9.Click += new System.EventHandler(this.label9_Click);
|
|
//
|
|
// CeckScanning
|
|
//
|
|
this.CeckScanning.AutoSize = true;
|
|
this.CeckScanning.Location = new System.Drawing.Point(216, 220);
|
|
this.CeckScanning.Name = "CeckScanning";
|
|
this.CeckScanning.Size = new System.Drawing.Size(170, 20);
|
|
this.CeckScanning.TabIndex = 90;
|
|
this.CeckScanning.Text = "是否使用串口扫码枪";
|
|
this.CeckScanning.UseVisualStyleBackColor = true;
|
|
this.CeckScanning.CheckedChanged += new System.EventHandler(this.CeckScanning_CheckedChanged);
|
|
//
|
|
// PortSetting
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(396, 479);
|
|
this.Controls.Add(this.CeckScanning);
|
|
this.Controls.Add(this.label9);
|
|
this.Controls.Add(this.PortBtnBreak);
|
|
this.Controls.Add(this.PortBtnRefresh);
|
|
this.Controls.Add(this.PortBtnCon1);
|
|
this.Controls.Add(this.label10);
|
|
this.Controls.Add(this.CodeIsComm1);
|
|
this.Controls.Add(this.label8);
|
|
this.Controls.Add(this.label7);
|
|
this.Controls.Add(this.CodeBaud1);
|
|
this.Controls.Add(this.CodePort1);
|
|
this.Controls.Add(this.ReceiveText);
|
|
this.Controls.Add(this.SendText);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.label5);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.label6);
|
|
this.Controls.Add(this.BtnBreak);
|
|
this.Controls.Add(this.BtnCon1);
|
|
this.Controls.Add(this.BtnRefresh);
|
|
this.Controls.Add(this.Baudrate);
|
|
this.Controls.Add(this.PortNum);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.label2);
|
|
this.Font = new System.Drawing.Font("宋体", 12F);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.Margin = new System.Windows.Forms.Padding(4);
|
|
this.Name = "PortSetting";
|
|
this.Load += new System.EventHandler(this.PortSetting_Load);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
private System.Windows.Forms.ComboBox Baudrate;
|
|
private System.Windows.Forms.ComboBox PortNum;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Button BtnCon1;
|
|
private System.Windows.Forms.Button BtnRefresh;
|
|
private System.Windows.Forms.Button BtnBreak;
|
|
private System.Windows.Forms.Label label3;
|
|
public System.Windows.Forms.Label label6;
|
|
private System.Windows.Forms.Label label4;
|
|
public System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.TextBox ReceiveText;
|
|
private System.Windows.Forms.TextBox SendText;
|
|
private System.IO.Ports.SerialPort TestPort1;
|
|
private System.Windows.Forms.Timer timer1;
|
|
private System.Windows.Forms.ComboBox CodePort1;
|
|
private System.Windows.Forms.ComboBox CodeBaud1;
|
|
private System.Windows.Forms.Label label7;
|
|
private System.Windows.Forms.Label label8;
|
|
public System.Windows.Forms.Label CodeIsComm1;
|
|
public System.Windows.Forms.Label label10;
|
|
private System.Windows.Forms.Button PortBtnCon1;
|
|
private System.Windows.Forms.Button PortBtnRefresh;
|
|
private System.Windows.Forms.Button PortBtnBreak;
|
|
private System.IO.Ports.SerialPort CodePort;
|
|
private System.Windows.Forms.Label label9;
|
|
private System.Windows.Forms.CheckBox CeckScanning;
|
|
}
|
|
} |