355 lines
15 KiB
C#
355 lines
15 KiB
C#
namespace sscom_sender;
|
|
|
|
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.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
this.cmbPort1 = new System.Windows.Forms.ComboBox();
|
|
this.cmbBaud1 = new System.Windows.Forms.ComboBox();
|
|
this.btnConnect1 = new System.Windows.Forms.Button();
|
|
this.lblPort1 = new System.Windows.Forms.Label();
|
|
this.lblBaud1 = new System.Windows.Forms.Label();
|
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
|
this.cmbPort2 = new System.Windows.Forms.ComboBox();
|
|
this.cmbBaud2 = new System.Windows.Forms.ComboBox();
|
|
this.btnConnect2 = new System.Windows.Forms.Button();
|
|
this.lblPort2 = new System.Windows.Forms.Label();
|
|
this.lblBaud2 = new System.Windows.Forms.Label();
|
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
|
this.txtUrl = new System.Windows.Forms.TextBox();
|
|
this.lblUrl = new System.Windows.Forms.Label();
|
|
this.btnStartUpload = new System.Windows.Forms.Button();
|
|
this.btnStopUpload = new System.Windows.Forms.Button();
|
|
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
|
this.txtLog = new System.Windows.Forms.TextBox();
|
|
this.btnClearLog = new System.Windows.Forms.Button();
|
|
this.btnSaveLog = new System.Windows.Forms.Button();
|
|
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
|
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
|
|
this.groupBox1.SuspendLayout();
|
|
this.groupBox2.SuspendLayout();
|
|
this.groupBox3.SuspendLayout();
|
|
this.groupBox4.SuspendLayout();
|
|
this.statusStrip1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// groupBox1
|
|
//
|
|
this.groupBox1.Controls.Add(this.lblBaud1);
|
|
this.groupBox1.Controls.Add(this.lblPort1);
|
|
this.groupBox1.Controls.Add(this.btnConnect1);
|
|
this.groupBox1.Controls.Add(this.cmbBaud1);
|
|
this.groupBox1.Controls.Add(this.cmbPort1);
|
|
this.groupBox1.Location = new System.Drawing.Point(12, 12);
|
|
this.groupBox1.Name = "groupBox1";
|
|
this.groupBox1.Size = new System.Drawing.Size(200, 120);
|
|
this.groupBox1.TabIndex = 0;
|
|
this.groupBox1.TabStop = false;
|
|
this.groupBox1.Text = "串口1";
|
|
//
|
|
// cmbPort1
|
|
//
|
|
this.cmbPort1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbPort1.FormattingEnabled = true;
|
|
this.cmbPort1.Location = new System.Drawing.Point(60, 25);
|
|
this.cmbPort1.Name = "cmbPort1";
|
|
this.cmbPort1.Size = new System.Drawing.Size(121, 23);
|
|
this.cmbPort1.TabIndex = 0;
|
|
//
|
|
// cmbBaud1
|
|
//
|
|
this.cmbBaud1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbBaud1.FormattingEnabled = true;
|
|
this.cmbBaud1.Items.AddRange(new object[] {
|
|
"9600",
|
|
"19200",
|
|
"38400",
|
|
"57600",
|
|
"115200"});
|
|
this.cmbBaud1.Location = new System.Drawing.Point(60, 54);
|
|
this.cmbBaud1.Name = "cmbBaud1";
|
|
this.cmbBaud1.Size = new System.Drawing.Size(121, 23);
|
|
this.cmbBaud1.TabIndex = 1;
|
|
//
|
|
// btnConnect1
|
|
//
|
|
this.btnConnect1.Location = new System.Drawing.Point(60, 83);
|
|
this.btnConnect1.Name = "btnConnect1";
|
|
this.btnConnect1.Size = new System.Drawing.Size(75, 23);
|
|
this.btnConnect1.TabIndex = 2;
|
|
this.btnConnect1.Text = "连接";
|
|
this.btnConnect1.UseVisualStyleBackColor = true;
|
|
this.btnConnect1.Click += new System.EventHandler(this.btnConnect1_Click);
|
|
//
|
|
// lblPort1
|
|
//
|
|
this.lblPort1.AutoSize = true;
|
|
this.lblPort1.Location = new System.Drawing.Point(15, 28);
|
|
this.lblPort1.Name = "lblPort1";
|
|
this.lblPort1.Size = new System.Drawing.Size(32, 15);
|
|
this.lblPort1.TabIndex = 3;
|
|
this.lblPort1.Text = "端口";
|
|
//
|
|
// lblBaud1
|
|
//
|
|
this.lblBaud1.AutoSize = true;
|
|
this.lblBaud1.Location = new System.Drawing.Point(15, 57);
|
|
this.lblBaud1.Name = "lblBaud1";
|
|
this.lblBaud1.Size = new System.Drawing.Size(44, 15);
|
|
this.lblBaud1.TabIndex = 4;
|
|
this.lblBaud1.Text = "波特率";
|
|
//
|
|
// groupBox2
|
|
//
|
|
this.groupBox2.Controls.Add(this.lblBaud2);
|
|
this.groupBox2.Controls.Add(this.lblPort2);
|
|
this.groupBox2.Controls.Add(this.btnConnect2);
|
|
this.groupBox2.Controls.Add(this.cmbBaud2);
|
|
this.groupBox2.Controls.Add(this.cmbPort2);
|
|
this.groupBox2.Location = new System.Drawing.Point(230, 12);
|
|
this.groupBox2.Name = "groupBox2";
|
|
this.groupBox2.Size = new System.Drawing.Size(200, 120);
|
|
this.groupBox2.TabIndex = 1;
|
|
this.groupBox2.TabStop = false;
|
|
this.groupBox2.Text = "串口2";
|
|
//
|
|
// cmbPort2
|
|
//
|
|
this.cmbPort2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbPort2.FormattingEnabled = true;
|
|
this.cmbPort2.Location = new System.Drawing.Point(60, 25);
|
|
this.cmbPort2.Name = "cmbPort2";
|
|
this.cmbPort2.Size = new System.Drawing.Size(121, 23);
|
|
this.cmbPort2.TabIndex = 0;
|
|
//
|
|
// cmbBaud2
|
|
//
|
|
this.cmbBaud2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbBaud2.FormattingEnabled = true;
|
|
this.cmbBaud2.Items.AddRange(new object[] {
|
|
"9600",
|
|
"19200",
|
|
"38400",
|
|
"57600",
|
|
"115200"});
|
|
this.cmbBaud2.Location = new System.Drawing.Point(60, 54);
|
|
this.cmbBaud2.Name = "cmbBaud2";
|
|
this.cmbBaud2.Size = new System.Drawing.Size(121, 23);
|
|
this.cmbBaud2.TabIndex = 1;
|
|
//
|
|
// btnConnect2
|
|
//
|
|
this.btnConnect2.Location = new System.Drawing.Point(60, 83);
|
|
this.btnConnect2.Name = "btnConnect2";
|
|
this.btnConnect2.Size = new System.Drawing.Size(75, 23);
|
|
this.btnConnect2.TabIndex = 2;
|
|
this.btnConnect2.Text = "连接";
|
|
this.btnConnect2.UseVisualStyleBackColor = true;
|
|
this.btnConnect2.Click += new System.EventHandler(this.btnConnect2_Click);
|
|
//
|
|
// lblPort2
|
|
//
|
|
this.lblPort2.AutoSize = true;
|
|
this.lblPort2.Location = new System.Drawing.Point(15, 28);
|
|
this.lblPort2.Name = "lblPort2";
|
|
this.lblPort2.Size = new System.Drawing.Size(32, 15);
|
|
this.lblPort2.TabIndex = 3;
|
|
this.lblPort2.Text = "端口";
|
|
//
|
|
// lblBaud2
|
|
//
|
|
this.lblBaud2.AutoSize = true;
|
|
this.lblBaud2.Location = new System.Drawing.Point(15, 57);
|
|
this.lblBaud2.Name = "lblBaud2";
|
|
this.lblBaud2.Size = new System.Drawing.Size(44, 15);
|
|
this.lblBaud2.TabIndex = 4;
|
|
this.lblBaud2.Text = "波特率";
|
|
//
|
|
// groupBox3
|
|
//
|
|
this.groupBox3.Controls.Add(this.btnStopUpload);
|
|
this.groupBox3.Controls.Add(this.btnStartUpload);
|
|
this.groupBox3.Controls.Add(this.lblUrl);
|
|
this.groupBox3.Controls.Add(this.txtUrl);
|
|
this.groupBox3.Location = new System.Drawing.Point(450, 12);
|
|
this.groupBox3.Name = "groupBox3";
|
|
this.groupBox3.Size = new System.Drawing.Size(320, 120);
|
|
this.groupBox3.TabIndex = 2;
|
|
this.groupBox3.TabStop = false;
|
|
this.groupBox3.Text = "数据上传";
|
|
//
|
|
// txtUrl
|
|
//
|
|
this.txtUrl.Location = new System.Drawing.Point(15, 40);
|
|
this.txtUrl.Name = "txtUrl";
|
|
this.txtUrl.Size = new System.Drawing.Size(290, 23);
|
|
this.txtUrl.TabIndex = 0;
|
|
this.txtUrl.Text = "http://localhost:8080/api/data";
|
|
//
|
|
// lblUrl
|
|
//
|
|
this.lblUrl.AutoSize = true;
|
|
this.lblUrl.Location = new System.Drawing.Point(15, 22);
|
|
this.lblUrl.Name = "lblUrl";
|
|
this.lblUrl.Size = new System.Drawing.Size(56, 15);
|
|
this.lblUrl.TabIndex = 1;
|
|
this.lblUrl.Text = "上传地址";
|
|
//
|
|
// btnStartUpload
|
|
//
|
|
this.btnStartUpload.Location = new System.Drawing.Point(15, 80);
|
|
this.btnStartUpload.Name = "btnStartUpload";
|
|
this.btnStartUpload.Size = new System.Drawing.Size(75, 23);
|
|
this.btnStartUpload.TabIndex = 2;
|
|
this.btnStartUpload.Text = "开始上传";
|
|
this.btnStartUpload.UseVisualStyleBackColor = true;
|
|
this.btnStartUpload.Click += new System.EventHandler(this.btnStartUpload_Click);
|
|
//
|
|
// btnStopUpload
|
|
//
|
|
this.btnStopUpload.Location = new System.Drawing.Point(110, 80);
|
|
this.btnStopUpload.Name = "btnStopUpload";
|
|
this.btnStopUpload.Size = new System.Drawing.Size(75, 23);
|
|
this.btnStopUpload.TabIndex = 3;
|
|
this.btnStopUpload.Text = "停止上传";
|
|
this.btnStopUpload.UseVisualStyleBackColor = true;
|
|
this.btnStopUpload.Click += new System.EventHandler(this.btnStopUpload_Click);
|
|
//
|
|
// groupBox4
|
|
//
|
|
this.groupBox4.Controls.Add(this.btnSaveLog);
|
|
this.groupBox4.Controls.Add(this.btnClearLog);
|
|
this.groupBox4.Controls.Add(this.txtLog);
|
|
this.groupBox4.Location = new System.Drawing.Point(12, 150);
|
|
this.groupBox4.Name = "groupBox4";
|
|
this.groupBox4.Size = new System.Drawing.Size(758, 270);
|
|
this.groupBox4.TabIndex = 3;
|
|
this.groupBox4.TabStop = false;
|
|
this.groupBox4.Text = "数据日志";
|
|
//
|
|
// txtLog
|
|
//
|
|
this.txtLog.Location = new System.Drawing.Point(15, 22);
|
|
this.txtLog.Multiline = true;
|
|
this.txtLog.Name = "txtLog";
|
|
this.txtLog.ReadOnly = true;
|
|
this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
|
this.txtLog.Size = new System.Drawing.Size(728, 210);
|
|
this.txtLog.TabIndex = 0;
|
|
//
|
|
// btnClearLog
|
|
//
|
|
this.btnClearLog.Location = new System.Drawing.Point(15, 238);
|
|
this.btnClearLog.Name = "btnClearLog";
|
|
this.btnClearLog.Size = new System.Drawing.Size(75, 23);
|
|
this.btnClearLog.TabIndex = 1;
|
|
this.btnClearLog.Text = "清空日志";
|
|
this.btnClearLog.UseVisualStyleBackColor = true;
|
|
this.btnClearLog.Click += new System.EventHandler(this.btnClearLog_Click);
|
|
//
|
|
// btnSaveLog
|
|
//
|
|
this.btnSaveLog.Location = new System.Drawing.Point(110, 238);
|
|
this.btnSaveLog.Name = "btnSaveLog";
|
|
this.btnSaveLog.Size = new System.Drawing.Size(75, 23);
|
|
this.btnSaveLog.TabIndex = 2;
|
|
this.btnSaveLog.Text = "保存日志";
|
|
this.btnSaveLog.UseVisualStyleBackColor = true;
|
|
this.btnSaveLog.Click += new System.EventHandler(this.btnSaveLog_Click);
|
|
//
|
|
// statusStrip1
|
|
//
|
|
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.toolStripStatusLabel1});
|
|
this.statusStrip1.Location = new System.Drawing.Point(0, 428);
|
|
this.statusStrip1.Name = "statusStrip1";
|
|
this.statusStrip1.Size = new System.Drawing.Size(784, 22);
|
|
this.statusStrip1.TabIndex = 4;
|
|
this.statusStrip1.Text = "statusStrip1";
|
|
//
|
|
// toolStripStatusLabel1
|
|
//
|
|
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
|
|
this.toolStripStatusLabel1.Size = new System.Drawing.Size(32, 17);
|
|
this.toolStripStatusLabel1.Text = "就绪";
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(784, 450);
|
|
this.Controls.Add(this.statusStrip1);
|
|
this.Controls.Add(this.groupBox4);
|
|
this.Controls.Add(this.groupBox3);
|
|
this.Controls.Add(this.groupBox2);
|
|
this.Controls.Add(this.groupBox1);
|
|
this.Name = "Form1";
|
|
this.Text = "串口数据采集与上传系统";
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
this.groupBox1.ResumeLayout(false);
|
|
this.groupBox1.PerformLayout();
|
|
this.groupBox2.ResumeLayout(false);
|
|
this.groupBox2.PerformLayout();
|
|
this.groupBox3.ResumeLayout(false);
|
|
this.groupBox3.PerformLayout();
|
|
this.groupBox4.ResumeLayout(false);
|
|
this.groupBox4.PerformLayout();
|
|
this.statusStrip1.ResumeLayout(false);
|
|
this.statusStrip1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|
private System.Windows.Forms.ComboBox cmbPort1;
|
|
private System.Windows.Forms.ComboBox cmbBaud1;
|
|
private System.Windows.Forms.Button btnConnect1;
|
|
private System.Windows.Forms.Label lblPort1;
|
|
private System.Windows.Forms.Label lblBaud1;
|
|
private System.Windows.Forms.GroupBox groupBox2;
|
|
private System.Windows.Forms.ComboBox cmbPort2;
|
|
private System.Windows.Forms.ComboBox cmbBaud2;
|
|
private System.Windows.Forms.Button btnConnect2;
|
|
private System.Windows.Forms.Label lblPort2;
|
|
private System.Windows.Forms.Label lblBaud2;
|
|
private System.Windows.Forms.GroupBox groupBox3;
|
|
private System.Windows.Forms.TextBox txtUrl;
|
|
private System.Windows.Forms.Label lblUrl;
|
|
private System.Windows.Forms.Button btnStartUpload;
|
|
private System.Windows.Forms.Button btnStopUpload;
|
|
private System.Windows.Forms.GroupBox groupBox4;
|
|
private System.Windows.Forms.TextBox txtLog;
|
|
private System.Windows.Forms.Button btnClearLog;
|
|
private System.Windows.Forms.Button btnSaveLog;
|
|
private System.Windows.Forms.StatusStrip statusStrip1;
|
|
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
|
|
}
|