You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
296 lines
11 KiB
C#
296 lines
11 KiB
C#
namespace Mesnac.Equips.Connection.COM
|
|
{
|
|
partial class SetConfigForm
|
|
{
|
|
/// <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.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
this.txtBuffSize = new System.Windows.Forms.TextBox();
|
|
this.cmbStopBits = new System.Windows.Forms.ComboBox();
|
|
this.cmbDataBits = new System.Windows.Forms.ComboBox();
|
|
this.cmbParity = new System.Windows.Forms.ComboBox();
|
|
this.txtBaudRate = new System.Windows.Forms.TextBox();
|
|
this.cmbPortName = new System.Windows.Forms.ComboBox();
|
|
this.cmbStationNum = new System.Windows.Forms.ComboBox();
|
|
this.label7 = new System.Windows.Forms.Label();
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.groupBox1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// groupBox1
|
|
//
|
|
this.groupBox1.Controls.Add(this.txtBuffSize);
|
|
this.groupBox1.Controls.Add(this.cmbStopBits);
|
|
this.groupBox1.Controls.Add(this.cmbDataBits);
|
|
this.groupBox1.Controls.Add(this.cmbParity);
|
|
this.groupBox1.Controls.Add(this.txtBaudRate);
|
|
this.groupBox1.Controls.Add(this.cmbPortName);
|
|
this.groupBox1.Controls.Add(this.cmbStationNum);
|
|
this.groupBox1.Controls.Add(this.label7);
|
|
this.groupBox1.Controls.Add(this.label6);
|
|
this.groupBox1.Controls.Add(this.label5);
|
|
this.groupBox1.Controls.Add(this.label4);
|
|
this.groupBox1.Controls.Add(this.button1);
|
|
this.groupBox1.Controls.Add(this.label3);
|
|
this.groupBox1.Controls.Add(this.label2);
|
|
this.groupBox1.Controls.Add(this.label1);
|
|
this.groupBox1.Location = new System.Drawing.Point(12, 12);
|
|
this.groupBox1.Name = "groupBox1";
|
|
this.groupBox1.Size = new System.Drawing.Size(321, 204);
|
|
this.groupBox1.TabIndex = 1;
|
|
this.groupBox1.TabStop = false;
|
|
this.groupBox1.Text = "串口配置";
|
|
//
|
|
// txtBuffSize
|
|
//
|
|
this.txtBuffSize.Location = new System.Drawing.Point(90, 167);
|
|
this.txtBuffSize.Name = "txtBuffSize";
|
|
this.txtBuffSize.Size = new System.Drawing.Size(121, 21);
|
|
this.txtBuffSize.TabIndex = 17;
|
|
this.txtBuffSize.Text = "1024";
|
|
//
|
|
// cmbStopBits
|
|
//
|
|
this.cmbStopBits.FormattingEnabled = true;
|
|
this.cmbStopBits.Items.AddRange(new object[] {
|
|
"None",
|
|
"1",
|
|
"1.5",
|
|
"2"});
|
|
this.cmbStopBits.Location = new System.Drawing.Point(90, 143);
|
|
this.cmbStopBits.Name = "cmbStopBits";
|
|
this.cmbStopBits.Size = new System.Drawing.Size(121, 20);
|
|
this.cmbStopBits.TabIndex = 16;
|
|
this.cmbStopBits.Text = "2";
|
|
//
|
|
// cmbDataBits
|
|
//
|
|
this.cmbDataBits.FormattingEnabled = true;
|
|
this.cmbDataBits.Items.AddRange(new object[] {
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
"7",
|
|
"8"});
|
|
this.cmbDataBits.Location = new System.Drawing.Point(90, 119);
|
|
this.cmbDataBits.Name = "cmbDataBits";
|
|
this.cmbDataBits.Size = new System.Drawing.Size(121, 20);
|
|
this.cmbDataBits.TabIndex = 15;
|
|
this.cmbDataBits.Text = "7";
|
|
//
|
|
// cmbParity
|
|
//
|
|
this.cmbParity.FormattingEnabled = true;
|
|
this.cmbParity.Items.AddRange(new object[] {
|
|
"Even",
|
|
"Mark",
|
|
"None",
|
|
"Odd",
|
|
"Space"});
|
|
this.cmbParity.Location = new System.Drawing.Point(90, 95);
|
|
this.cmbParity.Name = "cmbParity";
|
|
this.cmbParity.Size = new System.Drawing.Size(121, 20);
|
|
this.cmbParity.TabIndex = 14;
|
|
this.cmbParity.Text = "Even";
|
|
//
|
|
// txtBaudRate
|
|
//
|
|
this.txtBaudRate.Location = new System.Drawing.Point(90, 71);
|
|
this.txtBaudRate.Name = "txtBaudRate";
|
|
this.txtBaudRate.Size = new System.Drawing.Size(121, 21);
|
|
this.txtBaudRate.TabIndex = 13;
|
|
this.txtBaudRate.Text = "9600";
|
|
//
|
|
// cmbPortName
|
|
//
|
|
this.cmbPortName.FormattingEnabled = true;
|
|
this.cmbPortName.Items.AddRange(new object[] {
|
|
"COM1",
|
|
"COM2",
|
|
"COM3",
|
|
"COM4",
|
|
"COM5",
|
|
"COM6",
|
|
"COM7",
|
|
"COM8",
|
|
"COM9"});
|
|
this.cmbPortName.Location = new System.Drawing.Point(90, 47);
|
|
this.cmbPortName.Name = "cmbPortName";
|
|
this.cmbPortName.Size = new System.Drawing.Size(121, 20);
|
|
this.cmbPortName.TabIndex = 12;
|
|
this.cmbPortName.Text = "COM1";
|
|
//
|
|
// cmbStationNum
|
|
//
|
|
this.cmbStationNum.FormattingEnabled = true;
|
|
this.cmbStationNum.Items.AddRange(new object[] {
|
|
"00",
|
|
"01",
|
|
"02",
|
|
"03",
|
|
"04",
|
|
"05",
|
|
"06",
|
|
"07",
|
|
"08",
|
|
"09",
|
|
"10",
|
|
"11",
|
|
"12",
|
|
"13",
|
|
"14",
|
|
"15",
|
|
"16",
|
|
"17",
|
|
"18",
|
|
"19",
|
|
"20"});
|
|
this.cmbStationNum.Location = new System.Drawing.Point(90, 23);
|
|
this.cmbStationNum.Name = "cmbStationNum";
|
|
this.cmbStationNum.Size = new System.Drawing.Size(121, 20);
|
|
this.cmbStationNum.TabIndex = 11;
|
|
this.cmbStationNum.Text = "00";
|
|
//
|
|
// label7
|
|
//
|
|
this.label7.AutoSize = true;
|
|
this.label7.Location = new System.Drawing.Point(20, 167);
|
|
this.label7.Name = "label7";
|
|
this.label7.Size = new System.Drawing.Size(53, 12);
|
|
this.label7.TabIndex = 10;
|
|
this.label7.Text = "缓冲大小";
|
|
//
|
|
// label6
|
|
//
|
|
this.label6.AutoSize = true;
|
|
this.label6.Location = new System.Drawing.Point(20, 143);
|
|
this.label6.Name = "label6";
|
|
this.label6.Size = new System.Drawing.Size(41, 12);
|
|
this.label6.TabIndex = 9;
|
|
this.label6.Text = "停止位";
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.AutoSize = true;
|
|
this.label5.Location = new System.Drawing.Point(20, 119);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(41, 12);
|
|
this.label5.TabIndex = 8;
|
|
this.label5.Text = "数据位";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(20, 95);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(41, 12);
|
|
this.label4.TabIndex = 7;
|
|
this.label4.Text = "校验位";
|
|
//
|
|
// button1
|
|
//
|
|
this.button1.Location = new System.Drawing.Point(223, 23);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(75, 23);
|
|
this.button1.TabIndex = 6;
|
|
this.button1.Text = "确定";
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(20, 71);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(41, 12);
|
|
this.label3.TabIndex = 2;
|
|
this.label3.Text = "波特率";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(20, 47);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(47, 12);
|
|
this.label2.TabIndex = 1;
|
|
this.label2.Text = "COM端口";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(20, 23);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(29, 12);
|
|
this.label1.TabIndex = 0;
|
|
this.label1.Text = "站号";
|
|
//
|
|
// SetConfigForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(343, 228);
|
|
this.Controls.Add(this.groupBox1);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
|
|
this.Name = "SetConfigForm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "连接配置";
|
|
this.groupBox1.ResumeLayout(false);
|
|
this.groupBox1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|
private System.Windows.Forms.Button button1;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.Label label6;
|
|
private System.Windows.Forms.Label label7;
|
|
private System.Windows.Forms.TextBox txtBuffSize;
|
|
private System.Windows.Forms.ComboBox cmbStopBits;
|
|
private System.Windows.Forms.ComboBox cmbDataBits;
|
|
private System.Windows.Forms.ComboBox cmbParity;
|
|
private System.Windows.Forms.TextBox txtBaudRate;
|
|
private System.Windows.Forms.ComboBox cmbPortName;
|
|
private System.Windows.Forms.ComboBox cmbStationNum;
|
|
|
|
}
|
|
} |