代码拉取完成,页面将自动刷新
namespace SerialTools {
partial class FrmSerial {
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent() {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSerial));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label();
this.txtBaud = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.cboParity = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.cboStopBits = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.cboPorts = new System.Windows.Forms.ComboBox();
this.numDataBits = new System.Windows.Forms.NumericUpDown();
this.btnStart = new System.Windows.Forms.Button();
this.btnStop = new System.Windows.Forms.Button();
this.btnRecvDataSave = new System.Windows.Forms.Button();
this.btnClearLog = new System.Windows.Forms.Button();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.txtRecv = new System.Windows.Forms.TextBox();
this.mnuMessage = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ClearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.txtSend = new System.Windows.Forms.TextBox();
this.statusBar = new System.Windows.Forms.StatusStrip();
this.lInfo = new System.Windows.Forms.ToolStripStatusLabel();
this.lSend = new System.Windows.Forms.ToolStripStatusLabel();
this.lRecv = new System.Windows.Forms.ToolStripStatusLabel();
this.lRecvFilePath = new System.Windows.Forms.ToolStripStatusLabel();
this.lErr = new System.Windows.Forms.ToolStripStatusLabel();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.serialPort = new System.IO.Ports.SerialPort(this.components);
this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numDataBits)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
this.mnuMessage.SuspendLayout();
this.statusBar.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(800, 425);
this.splitContainer1.SplitterDistance = 189;
this.splitContainer1.TabIndex = 0;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35.97884F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.02116F));
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.txtBaud, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.cboParity, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.label4, 0, 4);
this.tableLayoutPanel1.Controls.Add(this.cboStopBits, 1, 4);
this.tableLayoutPanel1.Controls.Add(this.label5, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.cboPorts, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.numDataBits, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.btnStart, 0, 5);
this.tableLayoutPanel1.Controls.Add(this.btnStop, 0, 6);
this.tableLayoutPanel1.Controls.Add(this.btnRecvDataSave, 0, 7);
this.tableLayoutPanel1.Controls.Add(this.btnClearLog, 0, 8);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 9;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(189, 257);
this.tableLayoutPanel1.TabIndex = 0;
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(3, 28);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(62, 28);
this.label1.TabIndex = 0;
this.label1.Text = "波特率";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtBaud
//
this.txtBaud.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtBaud.Location = new System.Drawing.Point(71, 31);
this.txtBaud.Name = "txtBaud";
this.txtBaud.Size = new System.Drawing.Size(115, 21);
this.txtBaud.TabIndex = 1;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(3, 56);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(62, 28);
this.label2.TabIndex = 2;
this.label2.Text = "奇偶校验";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cboParity
//
this.cboParity.Dock = System.Windows.Forms.DockStyle.Fill;
this.cboParity.FormattingEnabled = true;
this.cboParity.Location = new System.Drawing.Point(71, 59);
this.cboParity.Name = "cboParity";
this.cboParity.Size = new System.Drawing.Size(115, 20);
this.cboParity.TabIndex = 3;
//
// label3
//
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Location = new System.Drawing.Point(3, 84);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(62, 28);
this.label3.TabIndex = 4;
this.label3.Text = "数据位";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label4
//
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
this.label4.Location = new System.Drawing.Point(3, 112);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(62, 28);
this.label4.TabIndex = 5;
this.label4.Text = "停止位";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cboStopBits
//
this.cboStopBits.Dock = System.Windows.Forms.DockStyle.Fill;
this.cboStopBits.FormattingEnabled = true;
this.cboStopBits.Location = new System.Drawing.Point(71, 115);
this.cboStopBits.Name = "cboStopBits";
this.cboStopBits.Size = new System.Drawing.Size(115, 20);
this.cboStopBits.TabIndex = 7;
//
// label5
//
this.label5.Dock = System.Windows.Forms.DockStyle.Fill;
this.label5.Location = new System.Drawing.Point(3, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(62, 28);
this.label5.TabIndex = 8;
this.label5.Text = "端口";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cboPorts
//
this.cboPorts.Dock = System.Windows.Forms.DockStyle.Fill;
this.cboPorts.FormattingEnabled = true;
this.cboPorts.Location = new System.Drawing.Point(71, 3);
this.cboPorts.Name = "cboPorts";
this.cboPorts.Size = new System.Drawing.Size(115, 20);
this.cboPorts.TabIndex = 9;
//
// numDataBits
//
this.numDataBits.Dock = System.Windows.Forms.DockStyle.Fill;
this.numDataBits.Location = new System.Drawing.Point(71, 87);
this.numDataBits.Name = "numDataBits";
this.numDataBits.Size = new System.Drawing.Size(115, 21);
this.numDataBits.TabIndex = 10;
this.numDataBits.Value = new decimal(new int[] {
8,
0,
0,
0});
//
// btnStart
//
this.tableLayoutPanel1.SetColumnSpan(this.btnStart, 2);
this.btnStart.Dock = System.Windows.Forms.DockStyle.Top;
this.btnStart.Location = new System.Drawing.Point(3, 143);
this.btnStart.Name = "btnStart";
this.btnStart.Size = new System.Drawing.Size(183, 22);
this.btnStart.TabIndex = 11;
this.btnStart.Text = "&O打开";
this.btnStart.UseVisualStyleBackColor = true;
this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
//
// btnStop
//
this.tableLayoutPanel1.SetColumnSpan(this.btnStop, 2);
this.btnStop.Dock = System.Windows.Forms.DockStyle.Top;
this.btnStop.Location = new System.Drawing.Point(3, 171);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(183, 22);
this.btnStop.TabIndex = 12;
this.btnStop.Text = "&C关闭";
this.btnStop.UseVisualStyleBackColor = true;
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// btnRecvDataSave
//
this.tableLayoutPanel1.SetColumnSpan(this.btnRecvDataSave, 2);
this.btnRecvDataSave.Dock = System.Windows.Forms.DockStyle.Top;
this.btnRecvDataSave.Location = new System.Drawing.Point(3, 199);
this.btnRecvDataSave.Name = "btnRecvDataSave";
this.btnRecvDataSave.Size = new System.Drawing.Size(183, 22);
this.btnRecvDataSave.TabIndex = 13;
this.btnRecvDataSave.Text = "保存接收到的数据";
this.btnRecvDataSave.UseVisualStyleBackColor = true;
this.btnRecvDataSave.Click += new System.EventHandler(this.btnRecvDataSave_Click);
//
// btnClearLog
//
this.tableLayoutPanel1.SetColumnSpan(this.btnClearLog, 2);
this.btnClearLog.Dock = System.Windows.Forms.DockStyle.Top;
this.btnClearLog.Location = new System.Drawing.Point(3, 227);
this.btnClearLog.Name = "btnClearLog";
this.btnClearLog.Size = new System.Drawing.Size(183, 23);
this.btnClearLog.TabIndex = 14;
this.btnClearLog.Text = "清除接收文件数据";
this.btnClearLog.UseVisualStyleBackColor = true;
this.btnClearLog.Click += new System.EventHandler(this.btnClearLog_Click);
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.txtRecv);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.txtSend);
this.splitContainer2.Size = new System.Drawing.Size(607, 425);
this.splitContainer2.SplitterDistance = 304;
this.splitContainer2.TabIndex = 0;
//
// txtRecv
//
this.txtRecv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtRecv.ContextMenuStrip = this.mnuMessage;
this.txtRecv.Location = new System.Drawing.Point(3, 3);
this.txtRecv.Multiline = true;
this.txtRecv.Name = "txtRecv";
this.txtRecv.ReadOnly = true;
this.txtRecv.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.txtRecv.Size = new System.Drawing.Size(601, 298);
this.txtRecv.TabIndex = 0;
this.toolTip1.SetToolTip(this.txtRecv, "端口输入内容");
this.txtRecv.WordWrap = false;
this.txtRecv.MouseEnter += new System.EventHandler(this.txtRecv_MouseEnter);
//
// mnuMessage
//
this.mnuMessage.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ClearToolStripMenuItem});
this.mnuMessage.Name = "mnuMessage";
this.mnuMessage.Size = new System.Drawing.Size(101, 26);
this.mnuMessage.Tag = "";
//
// ClearToolStripMenuItem
//
this.ClearToolStripMenuItem.Name = "ClearToolStripMenuItem";
this.ClearToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
this.ClearToolStripMenuItem.Text = "清除";
this.ClearToolStripMenuItem.Click += new System.EventHandler(this.ClearToolStripMenuItem_Click);
//
// txtSend
//
this.txtSend.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtSend.ContextMenuStrip = this.mnuMessage;
this.txtSend.Location = new System.Drawing.Point(3, 3);
this.txtSend.Multiline = true;
this.txtSend.Name = "txtSend";
this.txtSend.Size = new System.Drawing.Size(601, 111);
this.txtSend.TabIndex = 1;
this.toolTip1.SetToolTip(this.txtSend, "要发送的数据,CTRL+ENTER发送");
this.txtSend.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtSend_KeyDown);
this.txtSend.MouseEnter += new System.EventHandler(this.txtSend_MouseEnter);
//
// statusBar
//
this.statusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lInfo,
this.lSend,
this.lRecv,
this.lRecvFilePath,
this.lErr});
this.statusBar.Location = new System.Drawing.Point(0, 428);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(800, 22);
this.statusBar.TabIndex = 1;
this.statusBar.Text = "statusStrip1";
//
// lInfo
//
this.lInfo.Name = "lInfo";
this.lInfo.Size = new System.Drawing.Size(80, 17);
this.lInfo.Text = "状态消息:无";
//
// lSend
//
this.lSend.Name = "lSend";
this.lSend.Size = new System.Drawing.Size(51, 17);
this.lSend.Text = "发送:0";
//
// lRecv
//
this.lRecv.Name = "lRecv";
this.lRecv.Size = new System.Drawing.Size(51, 17);
this.lRecv.Text = "接收:0";
//
// lRecvFilePath
//
this.lRecvFilePath.Name = "lRecvFilePath";
this.lRecvFilePath.Size = new System.Drawing.Size(104, 17);
this.lRecvFilePath.Text = "接收文件路径:无";
this.lRecvFilePath.Click += new System.EventHandler(this.lRecvFilePath_Click);
//
// lErr
//
this.lErr.Name = "lErr";
this.lErr.Size = new System.Drawing.Size(56, 17);
this.lErr.Text = "错误:无";
//
// toolTip1
//
this.toolTip1.AutoPopDelay = 50000;
this.toolTip1.InitialDelay = 300;
this.toolTip1.ReshowDelay = 100;
this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
//
// FrmSerial
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.statusBar);
this.Controls.Add(this.splitContainer1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmSerial";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "串口工具";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmSerial_FormClosing);
this.Load += new System.EventHandler(this.frmSerial_Load);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numDataBits)).EndInit();
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel1.PerformLayout();
this.splitContainer2.Panel2.ResumeLayout(false);
this.splitContainer2.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.mnuMessage.ResumeLayout(false);
this.statusBar.ResumeLayout(false);
this.statusBar.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtBaud;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox cboParity;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox cboStopBits;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.TextBox txtRecv;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ComboBox cboPorts;
private System.Windows.Forms.NumericUpDown numDataBits;
private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Button btnStop;
private System.Windows.Forms.StatusStrip statusBar;
private System.Windows.Forms.ToolStripStatusLabel lInfo;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.TextBox txtSend;
private System.Windows.Forms.ToolStripStatusLabel lSend;
private System.Windows.Forms.ToolStripStatusLabel lRecv;
private System.Windows.Forms.ContextMenuStrip mnuMessage;
private System.Windows.Forms.ToolStripMenuItem ClearToolStripMenuItem;
private System.IO.Ports.SerialPort serialPort;
private System.Windows.Forms.Button btnRecvDataSave;
private System.Windows.Forms.SaveFileDialog saveFileDialog;
private System.Windows.Forms.ToolStripStatusLabel lRecvFilePath;
private System.Windows.Forms.ToolStripStatusLabel lErr;
private System.Windows.Forms.Button btnClearLog;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。