📄 form1.designer.cs
字号:
namespace CsSerialport
{
partial class Form1
{
/// <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();
this.serialPort2 = new System.IO.Ports.SerialPort(this.components);
this.btnSend = new System.Windows.Forms.Button();
this.btnSendB = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.btnOpen = new System.Windows.Forms.Button();
this.txtboxPort = new System.Windows.Forms.TextBox();
this.txtboxSend = new System.Windows.Forms.TextBox();
this.btnList = new System.Windows.Forms.Button();
this.lblOut = new System.Windows.Forms.Label();
this.txtOut = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// serialPort2
//
this.serialPort2.BaudRate = 115200;
this.serialPort2.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort2_DataReceived);
this.serialPort2.PinChanged += new System.IO.Ports.SerialPinChangedEventHandler(this.serialPort2_PinChanged);
this.serialPort2.ErrorReceived += new System.IO.Ports.SerialErrorReceivedEventHandler(this.serialPort2_ErrorReceived);
//
// btnSend
//
this.btnSend.Location = new System.Drawing.Point(5, 58);
this.btnSend.Name = "btnSend";
this.btnSend.Size = new System.Drawing.Size(73, 26);
this.btnSend.TabIndex = 0;
this.btnSend.Text = "Send";
this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
//
// btnSendB
//
this.btnSendB.Enabled = false;
this.btnSendB.Location = new System.Drawing.Point(80, 58);
this.btnSendB.Name = "btnSendB";
this.btnSendB.Size = new System.Drawing.Size(82, 26);
this.btnSendB.TabIndex = 1;
this.btnSendB.Text = "SendStatus";
this.btnSendB.Visible = false;
this.btnSendB.Click += new System.EventHandler(this.btnSendB_Click);
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(113, 5);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(49, 27);
this.btnClose.TabIndex = 2;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnOpen
//
this.btnOpen.Location = new System.Drawing.Point(70, 5);
this.btnOpen.Name = "btnOpen";
this.btnOpen.Size = new System.Drawing.Size(43, 27);
this.btnOpen.TabIndex = 3;
this.btnOpen.Text = "Open";
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
//
// txtboxPort
//
this.txtboxPort.Location = new System.Drawing.Point(50, 7);
this.txtboxPort.Name = "txtboxPort";
this.txtboxPort.Size = new System.Drawing.Size(19, 23);
this.txtboxPort.TabIndex = 5;
this.txtboxPort.Text = "1";
//
// txtboxSend
//
this.txtboxSend.Location = new System.Drawing.Point(3, 33);
this.txtboxSend.Name = "txtboxSend";
this.txtboxSend.Size = new System.Drawing.Size(159, 23);
this.txtboxSend.TabIndex = 7;
this.txtboxSend.Text = "1";
//
// btnList
//
this.btnList.Location = new System.Drawing.Point(1, 6);
this.btnList.Name = "btnList";
this.btnList.Size = new System.Drawing.Size(49, 27);
this.btnList.TabIndex = 8;
this.btnList.Text = "ListAll";
this.btnList.Click += new System.EventHandler(this.btnList_Click);
//
// lblOut
//
this.lblOut.Location = new System.Drawing.Point(8, 87);
this.lblOut.Name = "lblOut";
this.lblOut.Size = new System.Drawing.Size(154, 46);
this.lblOut.Text = "!";
//
// txtOut
//
this.txtOut.Location = new System.Drawing.Point(168, 7);
this.txtOut.Multiline = true;
this.txtOut.Name = "txtOut";
this.txtOut.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.txtOut.Size = new System.Drawing.Size(240, 169);
this.txtOut.TabIndex = 10;
this.txtOut.Text = "1";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(318, 195);
this.Controls.Add(this.txtOut);
this.Controls.Add(this.btnList);
this.Controls.Add(this.txtboxSend);
this.Controls.Add(this.txtboxPort);
this.Controls.Add(this.lblOut);
this.Controls.Add(this.btnOpen);
this.Controls.Add(this.btnClose);
this.Controls.Add(this.btnSendB);
this.Controls.Add(this.btnSend);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btnSend;
private System.Windows.Forms.Button btnSendB;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnOpen;
private System.Windows.Forms.TextBox txtboxPort;
private System.Windows.Forms.TextBox txtboxSend;
private System.Windows.Forms.Button btnList;
private System.Windows.Forms.Label lblOut;
private System.Windows.Forms.TextBox txtOut;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -