276 lines
12 KiB
C#
276 lines
12 KiB
C#
|
|
namespace NTADCP
|
|||
|
|
{
|
|||
|
|
partial class Form1
|
|||
|
|
{
|
|||
|
|
/// <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(Form1));
|
|||
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|||
|
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
|||
|
|
this.label10 = new System.Windows.Forms.Label();
|
|||
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|||
|
|
this.label9 = new System.Windows.Forms.Label();
|
|||
|
|
this.button2 = new System.Windows.Forms.Button();
|
|||
|
|
this.label8 = new System.Windows.Forms.Label();
|
|||
|
|
this.label7 = new System.Windows.Forms.Label();
|
|||
|
|
this.label6 = new System.Windows.Forms.Label();
|
|||
|
|
this.label5 = new System.Windows.Forms.Label();
|
|||
|
|
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.button1 = new System.Windows.Forms.Button();
|
|||
|
|
this.label2 = new System.Windows.Forms.Label();
|
|||
|
|
this.label1 = new System.Windows.Forms.Label();
|
|||
|
|
this.label3 = new System.Windows.Forms.Label();
|
|||
|
|
this.label4 = new System.Windows.Forms.Label();
|
|||
|
|
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
|
|||
|
|
this.button3 = new System.Windows.Forms.Button();
|
|||
|
|
this.groupBox1.SuspendLayout();
|
|||
|
|
this.SuspendLayout();
|
|||
|
|
//
|
|||
|
|
// groupBox1
|
|||
|
|
//
|
|||
|
|
this.groupBox1.Controls.Add(this.button3);
|
|||
|
|
this.groupBox1.Controls.Add(this.textBox2);
|
|||
|
|
this.groupBox1.Controls.Add(this.label10);
|
|||
|
|
this.groupBox1.Controls.Add(this.textBox1);
|
|||
|
|
this.groupBox1.Controls.Add(this.label9);
|
|||
|
|
this.groupBox1.Controls.Add(this.button2);
|
|||
|
|
this.groupBox1.Controls.Add(this.label8);
|
|||
|
|
this.groupBox1.Controls.Add(this.label7);
|
|||
|
|
this.groupBox1.Controls.Add(this.label6);
|
|||
|
|
this.groupBox1.Controls.Add(this.label5);
|
|||
|
|
this.groupBox1.Controls.Add(this.comboBox2);
|
|||
|
|
this.groupBox1.Controls.Add(this.comboBox1);
|
|||
|
|
this.groupBox1.Controls.Add(this.button1);
|
|||
|
|
this.groupBox1.Controls.Add(this.label2);
|
|||
|
|
this.groupBox1.Controls.Add(this.label1);
|
|||
|
|
this.groupBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|||
|
|
this.groupBox1.Location = new System.Drawing.Point(12, 35);
|
|||
|
|
this.groupBox1.Name = "groupBox1";
|
|||
|
|
this.groupBox1.Size = new System.Drawing.Size(687, 219);
|
|||
|
|
this.groupBox1.TabIndex = 0;
|
|||
|
|
this.groupBox1.TabStop = false;
|
|||
|
|
this.groupBox1.Text = "系统控制";
|
|||
|
|
//
|
|||
|
|
// textBox2
|
|||
|
|
//
|
|||
|
|
this.textBox2.Location = new System.Drawing.Point(337, 94);
|
|||
|
|
this.textBox2.Name = "textBox2";
|
|||
|
|
this.textBox2.Size = new System.Drawing.Size(152, 26);
|
|||
|
|
this.textBox2.TabIndex = 13;
|
|||
|
|
//
|
|||
|
|
// label10
|
|||
|
|
//
|
|||
|
|
this.label10.AutoSize = true;
|
|||
|
|
this.label10.Location = new System.Drawing.Point(263, 100);
|
|||
|
|
this.label10.Name = "label10";
|
|||
|
|
this.label10.Size = new System.Drawing.Size(71, 16);
|
|||
|
|
this.label10.TabIndex = 12;
|
|||
|
|
this.label10.Text = "端口号:";
|
|||
|
|
//
|
|||
|
|
// textBox1
|
|||
|
|
//
|
|||
|
|
this.textBox1.Location = new System.Drawing.Point(108, 93);
|
|||
|
|
this.textBox1.Name = "textBox1";
|
|||
|
|
this.textBox1.Size = new System.Drawing.Size(137, 26);
|
|||
|
|
this.textBox1.TabIndex = 11;
|
|||
|
|
//
|
|||
|
|
// label9
|
|||
|
|
//
|
|||
|
|
this.label9.AutoSize = true;
|
|||
|
|
this.label9.Location = new System.Drawing.Point(9, 97);
|
|||
|
|
this.label9.Name = "label9";
|
|||
|
|
this.label9.Size = new System.Drawing.Size(95, 16);
|
|||
|
|
this.label9.TabIndex = 10;
|
|||
|
|
this.label9.Text = "数据转发IP:";
|
|||
|
|
//
|
|||
|
|
// button2
|
|||
|
|
//
|
|||
|
|
this.button2.Location = new System.Drawing.Point(556, 160);
|
|||
|
|
this.button2.Name = "button2";
|
|||
|
|
this.button2.Size = new System.Drawing.Size(90, 29);
|
|||
|
|
this.button2.TabIndex = 9;
|
|||
|
|
this.button2.Text = "开始测量";
|
|||
|
|
this.button2.UseVisualStyleBackColor = true;
|
|||
|
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|||
|
|
//
|
|||
|
|
// label8
|
|||
|
|
//
|
|||
|
|
this.label8.AutoSize = true;
|
|||
|
|
this.label8.Location = new System.Drawing.Point(353, 164);
|
|||
|
|
this.label8.Name = "label8";
|
|||
|
|
this.label8.Size = new System.Drawing.Size(55, 16);
|
|||
|
|
this.label8.TabIndex = 8;
|
|||
|
|
this.label8.Text = "label8";
|
|||
|
|
//
|
|||
|
|
// label7
|
|||
|
|
//
|
|||
|
|
this.label7.AutoSize = true;
|
|||
|
|
this.label7.Location = new System.Drawing.Point(260, 164);
|
|||
|
|
this.label7.Name = "label7";
|
|||
|
|
this.label7.Size = new System.Drawing.Size(87, 16);
|
|||
|
|
this.label7.TabIndex = 7;
|
|||
|
|
this.label7.Text = "流速方向:";
|
|||
|
|
//
|
|||
|
|
// label6
|
|||
|
|
//
|
|||
|
|
this.label6.AutoSize = true;
|
|||
|
|
this.label6.Location = new System.Drawing.Point(113, 164);
|
|||
|
|
this.label6.Name = "label6";
|
|||
|
|
this.label6.Size = new System.Drawing.Size(71, 16);
|
|||
|
|
this.label6.TabIndex = 6;
|
|||
|
|
this.label6.Text = "0.00 m/s";
|
|||
|
|
//
|
|||
|
|
// label5
|
|||
|
|
//
|
|||
|
|
this.label5.AutoSize = true;
|
|||
|
|
this.label5.Location = new System.Drawing.Point(20, 164);
|
|||
|
|
this.label5.Name = "label5";
|
|||
|
|
this.label5.Size = new System.Drawing.Size(87, 16);
|
|||
|
|
this.label5.TabIndex = 5;
|
|||
|
|
this.label5.Text = "表面流速:";
|
|||
|
|
//
|
|||
|
|
// comboBox2
|
|||
|
|
//
|
|||
|
|
this.comboBox2.FormattingEnabled = true;
|
|||
|
|
this.comboBox2.Location = new System.Drawing.Point(337, 30);
|
|||
|
|
this.comboBox2.Name = "comboBox2";
|
|||
|
|
this.comboBox2.Size = new System.Drawing.Size(152, 24);
|
|||
|
|
this.comboBox2.TabIndex = 4;
|
|||
|
|
//
|
|||
|
|
// comboBox1
|
|||
|
|
//
|
|||
|
|
this.comboBox1.FormattingEnabled = true;
|
|||
|
|
this.comboBox1.Location = new System.Drawing.Point(107, 30);
|
|||
|
|
this.comboBox1.Name = "comboBox1";
|
|||
|
|
this.comboBox1.Size = new System.Drawing.Size(137, 24);
|
|||
|
|
this.comboBox1.TabIndex = 3;
|
|||
|
|
this.comboBox1.DropDown += new System.EventHandler(this.comboBox1_DropDown);
|
|||
|
|
//
|
|||
|
|
// button1
|
|||
|
|
//
|
|||
|
|
this.button1.Location = new System.Drawing.Point(556, 30);
|
|||
|
|
this.button1.Name = "button1";
|
|||
|
|
this.button1.Size = new System.Drawing.Size(90, 29);
|
|||
|
|
this.button1.TabIndex = 2;
|
|||
|
|
this.button1.Text = "打开串口";
|
|||
|
|
this.button1.UseVisualStyleBackColor = true;
|
|||
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|||
|
|
//
|
|||
|
|
// label2
|
|||
|
|
//
|
|||
|
|
this.label2.AutoSize = true;
|
|||
|
|
this.label2.Location = new System.Drawing.Point(260, 33);
|
|||
|
|
this.label2.Name = "label2";
|
|||
|
|
this.label2.Size = new System.Drawing.Size(71, 16);
|
|||
|
|
this.label2.TabIndex = 1;
|
|||
|
|
this.label2.Text = "波特率:";
|
|||
|
|
//
|
|||
|
|
// label1
|
|||
|
|
//
|
|||
|
|
this.label1.AutoSize = true;
|
|||
|
|
this.label1.Location = new System.Drawing.Point(32, 33);
|
|||
|
|
this.label1.Name = "label1";
|
|||
|
|
this.label1.Size = new System.Drawing.Size(71, 16);
|
|||
|
|
this.label1.TabIndex = 0;
|
|||
|
|
this.label1.Text = "串口号:";
|
|||
|
|
//
|
|||
|
|
// label3
|
|||
|
|
//
|
|||
|
|
this.label3.AutoSize = true;
|
|||
|
|
this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|||
|
|
this.label3.Location = new System.Drawing.Point(391, 16);
|
|||
|
|
this.label3.Name = "label3";
|
|||
|
|
this.label3.Size = new System.Drawing.Size(119, 16);
|
|||
|
|
this.label3.TabIndex = 1;
|
|||
|
|
this.label3.Text = "当前系统时间:";
|
|||
|
|
//
|
|||
|
|
// label4
|
|||
|
|
//
|
|||
|
|
this.label4.AutoSize = true;
|
|||
|
|
this.label4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|||
|
|
this.label4.Location = new System.Drawing.Point(525, 16);
|
|||
|
|
this.label4.Name = "label4";
|
|||
|
|
this.label4.Size = new System.Drawing.Size(159, 16);
|
|||
|
|
this.label4.TabIndex = 2;
|
|||
|
|
this.label4.Text = "0000-00-00 00:00:00";
|
|||
|
|
//
|
|||
|
|
// button3
|
|||
|
|
//
|
|||
|
|
this.button3.Location = new System.Drawing.Point(556, 91);
|
|||
|
|
this.button3.Name = "button3";
|
|||
|
|
this.button3.Size = new System.Drawing.Size(90, 29);
|
|||
|
|
this.button3.TabIndex = 14;
|
|||
|
|
this.button3.Text = "连接";
|
|||
|
|
this.button3.UseVisualStyleBackColor = true;
|
|||
|
|
this.button3.Click += new System.EventHandler(this.button3_Click);
|
|||
|
|
//
|
|||
|
|
// Form1
|
|||
|
|
//
|
|||
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|||
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|||
|
|
this.ClientSize = new System.Drawing.Size(711, 264);
|
|||
|
|
this.Controls.Add(this.label4);
|
|||
|
|
this.Controls.Add(this.label3);
|
|||
|
|
this.Controls.Add(this.groupBox1);
|
|||
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|||
|
|
this.Name = "Form1";
|
|||
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|||
|
|
this.Text = "NTADCP";
|
|||
|
|
this.groupBox1.ResumeLayout(false);
|
|||
|
|
this.groupBox1.PerformLayout();
|
|||
|
|
this.ResumeLayout(false);
|
|||
|
|
this.PerformLayout();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|||
|
|
private System.Windows.Forms.ComboBox comboBox2;
|
|||
|
|
private System.Windows.Forms.ComboBox comboBox1;
|
|||
|
|
private System.Windows.Forms.Button button1;
|
|||
|
|
private System.Windows.Forms.Label label2;
|
|||
|
|
private System.Windows.Forms.Label label1;
|
|||
|
|
private System.Windows.Forms.Label label3;
|
|||
|
|
private System.Windows.Forms.Label label4;
|
|||
|
|
private System.IO.Ports.SerialPort serialPort1;
|
|||
|
|
private System.Windows.Forms.Label label6;
|
|||
|
|
private System.Windows.Forms.Label label5;
|
|||
|
|
private System.Windows.Forms.Label label7;
|
|||
|
|
private System.Windows.Forms.Label label8;
|
|||
|
|
private System.Windows.Forms.Button button2;
|
|||
|
|
private System.Windows.Forms.Label label10;
|
|||
|
|
private System.Windows.Forms.TextBox textBox1;
|
|||
|
|
private System.Windows.Forms.Label label9;
|
|||
|
|
private System.Windows.Forms.TextBox textBox2;
|
|||
|
|
private System.Windows.Forms.Button button3;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|