565 lines
24 KiB
C#
565 lines
24 KiB
C#
|
|
|
|||
|
|
namespace ZPYSerialPort
|
|||
|
|
{
|
|||
|
|
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();
|
|||
|
|
this.stopbit_cbb = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.label3 = new System.Windows.Forms.Label();
|
|||
|
|
this.databit_cbb = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.label2 = new System.Windows.Forms.Label();
|
|||
|
|
this.parity_cbb = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.label1 = new System.Windows.Forms.Label();
|
|||
|
|
this.open_btn = new System.Windows.Forms.Button();
|
|||
|
|
this.baudrate_cbb = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.portname_cbb = new System.Windows.Forms.ComboBox();
|
|||
|
|
this.label8 = new System.Windows.Forms.Label();
|
|||
|
|
this.label9 = new System.Windows.Forms.Label();
|
|||
|
|
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
|
|||
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|||
|
|
this.label4 = new System.Windows.Forms.Label();
|
|||
|
|
this.label5 = new System.Windows.Forms.Label();
|
|||
|
|
this.label6 = new System.Windows.Forms.Label();
|
|||
|
|
this.label7 = new System.Windows.Forms.Label();
|
|||
|
|
this.label10 = new System.Windows.Forms.Label();
|
|||
|
|
this.label11 = new System.Windows.Forms.Label();
|
|||
|
|
this.label12 = new System.Windows.Forms.Label();
|
|||
|
|
this.label13 = new System.Windows.Forms.Label();
|
|||
|
|
this.label14 = new System.Windows.Forms.Label();
|
|||
|
|
this.label15 = new System.Windows.Forms.Label();
|
|||
|
|
this.label16 = new System.Windows.Forms.Label();
|
|||
|
|
this.label17 = new System.Windows.Forms.Label();
|
|||
|
|
this.label18 = new System.Windows.Forms.Label();
|
|||
|
|
this.label19 = new System.Windows.Forms.Label();
|
|||
|
|
this.label20 = new System.Windows.Forms.Label();
|
|||
|
|
this.label21 = new System.Windows.Forms.Label();
|
|||
|
|
this.label22 = new System.Windows.Forms.Label();
|
|||
|
|
this.label23 = new System.Windows.Forms.Label();
|
|||
|
|
this.label24 = new System.Windows.Forms.Label();
|
|||
|
|
this.label25 = new System.Windows.Forms.Label();
|
|||
|
|
this.label26 = new System.Windows.Forms.Label();
|
|||
|
|
this.label27 = new System.Windows.Forms.Label();
|
|||
|
|
this.label28 = new System.Windows.Forms.Label();
|
|||
|
|
this.label29 = new System.Windows.Forms.Label();
|
|||
|
|
this.label30 = new System.Windows.Forms.Label();
|
|||
|
|
this.label31 = new System.Windows.Forms.Label();
|
|||
|
|
this.button1 = new System.Windows.Forms.Button();
|
|||
|
|
this.button2 = new System.Windows.Forms.Button();
|
|||
|
|
this.button3 = new System.Windows.Forms.Button();
|
|||
|
|
this.SuspendLayout();
|
|||
|
|
//
|
|||
|
|
// stopbit_cbb
|
|||
|
|
//
|
|||
|
|
this.stopbit_cbb.FormattingEnabled = true;
|
|||
|
|
this.stopbit_cbb.Location = new System.Drawing.Point(61, 187);
|
|||
|
|
this.stopbit_cbb.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.stopbit_cbb.Name = "stopbit_cbb";
|
|||
|
|
this.stopbit_cbb.Size = new System.Drawing.Size(114, 20);
|
|||
|
|
this.stopbit_cbb.TabIndex = 27;
|
|||
|
|
//
|
|||
|
|
// label3
|
|||
|
|
//
|
|||
|
|
this.label3.AutoSize = true;
|
|||
|
|
this.label3.Location = new System.Drawing.Point(11, 195);
|
|||
|
|
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|||
|
|
this.label3.Name = "label3";
|
|||
|
|
this.label3.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label3.TabIndex = 26;
|
|||
|
|
this.label3.Text = "停止位";
|
|||
|
|
//
|
|||
|
|
// databit_cbb
|
|||
|
|
//
|
|||
|
|
this.databit_cbb.FormattingEnabled = true;
|
|||
|
|
this.databit_cbb.Location = new System.Drawing.Point(61, 141);
|
|||
|
|
this.databit_cbb.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.databit_cbb.Name = "databit_cbb";
|
|||
|
|
this.databit_cbb.Size = new System.Drawing.Size(114, 20);
|
|||
|
|
this.databit_cbb.TabIndex = 25;
|
|||
|
|
//
|
|||
|
|
// label2
|
|||
|
|
//
|
|||
|
|
this.label2.AutoSize = true;
|
|||
|
|
this.label2.Location = new System.Drawing.Point(11, 149);
|
|||
|
|
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|||
|
|
this.label2.Name = "label2";
|
|||
|
|
this.label2.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label2.TabIndex = 24;
|
|||
|
|
this.label2.Text = "数据位";
|
|||
|
|
//
|
|||
|
|
// parity_cbb
|
|||
|
|
//
|
|||
|
|
this.parity_cbb.FormattingEnabled = true;
|
|||
|
|
this.parity_cbb.Location = new System.Drawing.Point(61, 98);
|
|||
|
|
this.parity_cbb.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.parity_cbb.Name = "parity_cbb";
|
|||
|
|
this.parity_cbb.Size = new System.Drawing.Size(114, 20);
|
|||
|
|
this.parity_cbb.TabIndex = 23;
|
|||
|
|
//
|
|||
|
|
// label1
|
|||
|
|
//
|
|||
|
|
this.label1.AutoSize = true;
|
|||
|
|
this.label1.Location = new System.Drawing.Point(11, 101);
|
|||
|
|
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|||
|
|
this.label1.Name = "label1";
|
|||
|
|
this.label1.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label1.TabIndex = 22;
|
|||
|
|
this.label1.Text = "校验位";
|
|||
|
|
//
|
|||
|
|
// open_btn
|
|||
|
|
//
|
|||
|
|
this.open_btn.Location = new System.Drawing.Point(13, 223);
|
|||
|
|
this.open_btn.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.open_btn.Name = "open_btn";
|
|||
|
|
this.open_btn.Size = new System.Drawing.Size(109, 41);
|
|||
|
|
this.open_btn.TabIndex = 21;
|
|||
|
|
this.open_btn.Text = "打开串口";
|
|||
|
|
this.open_btn.UseVisualStyleBackColor = true;
|
|||
|
|
this.open_btn.Click += new System.EventHandler(this.open_btn_Click);
|
|||
|
|
//
|
|||
|
|
// baudrate_cbb
|
|||
|
|
//
|
|||
|
|
this.baudrate_cbb.FormattingEnabled = true;
|
|||
|
|
this.baudrate_cbb.Location = new System.Drawing.Point(61, 50);
|
|||
|
|
this.baudrate_cbb.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.baudrate_cbb.Name = "baudrate_cbb";
|
|||
|
|
this.baudrate_cbb.Size = new System.Drawing.Size(114, 20);
|
|||
|
|
this.baudrate_cbb.TabIndex = 20;
|
|||
|
|
//
|
|||
|
|
// portname_cbb
|
|||
|
|
//
|
|||
|
|
this.portname_cbb.FormattingEnabled = true;
|
|||
|
|
this.portname_cbb.Location = new System.Drawing.Point(61, 6);
|
|||
|
|
this.portname_cbb.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.portname_cbb.Name = "portname_cbb";
|
|||
|
|
this.portname_cbb.Size = new System.Drawing.Size(114, 20);
|
|||
|
|
this.portname_cbb.TabIndex = 19;
|
|||
|
|
//
|
|||
|
|
// label8
|
|||
|
|
//
|
|||
|
|
this.label8.AutoSize = true;
|
|||
|
|
this.label8.Location = new System.Drawing.Point(11, 53);
|
|||
|
|
this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|||
|
|
this.label8.Name = "label8";
|
|||
|
|
this.label8.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label8.TabIndex = 18;
|
|||
|
|
this.label8.Text = "波特率";
|
|||
|
|
//
|
|||
|
|
// label9
|
|||
|
|
//
|
|||
|
|
this.label9.AutoSize = true;
|
|||
|
|
this.label9.Location = new System.Drawing.Point(11, 9);
|
|||
|
|
this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|||
|
|
this.label9.Name = "label9";
|
|||
|
|
this.label9.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label9.TabIndex = 17;
|
|||
|
|
this.label9.Text = "端口号";
|
|||
|
|
//
|
|||
|
|
// serialPort1
|
|||
|
|
//
|
|||
|
|
this.serialPort1.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort1_DataReceived);
|
|||
|
|
//
|
|||
|
|
// textBox1
|
|||
|
|
//
|
|||
|
|
this.textBox1.Location = new System.Drawing.Point(12, 269);
|
|||
|
|
this.textBox1.Multiline = true;
|
|||
|
|
this.textBox1.Name = "textBox1";
|
|||
|
|
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
|||
|
|
this.textBox1.Size = new System.Drawing.Size(462, 427);
|
|||
|
|
this.textBox1.TabIndex = 28;
|
|||
|
|
//
|
|||
|
|
// label4
|
|||
|
|
//
|
|||
|
|
this.label4.AutoSize = true;
|
|||
|
|
this.label4.Location = new System.Drawing.Point(231, 13);
|
|||
|
|
this.label4.Name = "label4";
|
|||
|
|
this.label4.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label4.TabIndex = 29;
|
|||
|
|
this.label4.Text = "温度";
|
|||
|
|
//
|
|||
|
|
// label5
|
|||
|
|
//
|
|||
|
|
this.label5.AutoSize = true;
|
|||
|
|
this.label5.Location = new System.Drawing.Point(360, 14);
|
|||
|
|
this.label5.Name = "label5";
|
|||
|
|
this.label5.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label5.TabIndex = 30;
|
|||
|
|
this.label5.Text = "湿度";
|
|||
|
|
//
|
|||
|
|
// label6
|
|||
|
|
//
|
|||
|
|
this.label6.AutoSize = true;
|
|||
|
|
this.label6.Location = new System.Drawing.Point(231, 50);
|
|||
|
|
this.label6.Name = "label6";
|
|||
|
|
this.label6.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label6.TabIndex = 31;
|
|||
|
|
this.label6.Text = "压力";
|
|||
|
|
//
|
|||
|
|
// label7
|
|||
|
|
//
|
|||
|
|
this.label7.AutoSize = true;
|
|||
|
|
this.label7.Location = new System.Drawing.Point(225, 89);
|
|||
|
|
this.label7.Name = "label7";
|
|||
|
|
this.label7.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label7.TabIndex = 32;
|
|||
|
|
this.label7.Text = "data1";
|
|||
|
|
//
|
|||
|
|
// label10
|
|||
|
|
//
|
|||
|
|
this.label10.AutoSize = true;
|
|||
|
|
this.label10.Location = new System.Drawing.Point(360, 89);
|
|||
|
|
this.label10.Name = "label10";
|
|||
|
|
this.label10.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label10.TabIndex = 33;
|
|||
|
|
this.label10.Text = "data2";
|
|||
|
|
//
|
|||
|
|
// label11
|
|||
|
|
//
|
|||
|
|
this.label11.AutoSize = true;
|
|||
|
|
this.label11.Location = new System.Drawing.Point(360, 114);
|
|||
|
|
this.label11.Name = "label11";
|
|||
|
|
this.label11.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label11.TabIndex = 35;
|
|||
|
|
this.label11.Text = "data4";
|
|||
|
|
//
|
|||
|
|
// label12
|
|||
|
|
//
|
|||
|
|
this.label12.AutoSize = true;
|
|||
|
|
this.label12.Location = new System.Drawing.Point(225, 114);
|
|||
|
|
this.label12.Name = "label12";
|
|||
|
|
this.label12.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label12.TabIndex = 34;
|
|||
|
|
this.label12.Text = "data3";
|
|||
|
|
//
|
|||
|
|
// label13
|
|||
|
|
//
|
|||
|
|
this.label13.AutoSize = true;
|
|||
|
|
this.label13.Location = new System.Drawing.Point(225, 195);
|
|||
|
|
this.label13.Name = "label13";
|
|||
|
|
this.label13.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label13.TabIndex = 39;
|
|||
|
|
this.label13.Text = "data9";
|
|||
|
|
//
|
|||
|
|
// label14
|
|||
|
|
//
|
|||
|
|
this.label14.AutoSize = true;
|
|||
|
|
this.label14.Location = new System.Drawing.Point(360, 171);
|
|||
|
|
this.label14.Name = "label14";
|
|||
|
|
this.label14.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label14.TabIndex = 38;
|
|||
|
|
this.label14.Text = "data8";
|
|||
|
|
//
|
|||
|
|
// label15
|
|||
|
|
//
|
|||
|
|
this.label15.AutoSize = true;
|
|||
|
|
this.label15.Location = new System.Drawing.Point(225, 171);
|
|||
|
|
this.label15.Name = "label15";
|
|||
|
|
this.label15.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label15.TabIndex = 37;
|
|||
|
|
this.label15.Text = "data7";
|
|||
|
|
//
|
|||
|
|
// label16
|
|||
|
|
//
|
|||
|
|
this.label16.AutoSize = true;
|
|||
|
|
this.label16.Location = new System.Drawing.Point(360, 144);
|
|||
|
|
this.label16.Name = "label16";
|
|||
|
|
this.label16.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label16.TabIndex = 36;
|
|||
|
|
this.label16.Text = "data6";
|
|||
|
|
//
|
|||
|
|
// label17
|
|||
|
|
//
|
|||
|
|
this.label17.AutoSize = true;
|
|||
|
|
this.label17.Location = new System.Drawing.Point(225, 144);
|
|||
|
|
this.label17.Name = "label17";
|
|||
|
|
this.label17.Size = new System.Drawing.Size(35, 12);
|
|||
|
|
this.label17.TabIndex = 40;
|
|||
|
|
this.label17.Text = "data5";
|
|||
|
|
//
|
|||
|
|
// label18
|
|||
|
|
//
|
|||
|
|
this.label18.AutoSize = true;
|
|||
|
|
this.label18.Location = new System.Drawing.Point(360, 193);
|
|||
|
|
this.label18.Name = "label18";
|
|||
|
|
this.label18.Size = new System.Drawing.Size(41, 12);
|
|||
|
|
this.label18.TabIndex = 41;
|
|||
|
|
this.label18.Text = "data10";
|
|||
|
|
//
|
|||
|
|
// label19
|
|||
|
|
//
|
|||
|
|
this.label19.AutoSize = true;
|
|||
|
|
this.label19.Location = new System.Drawing.Point(267, 13);
|
|||
|
|
this.label19.Name = "label19";
|
|||
|
|
this.label19.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label19.TabIndex = 42;
|
|||
|
|
this.label19.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label20
|
|||
|
|
//
|
|||
|
|
this.label20.AutoSize = true;
|
|||
|
|
this.label20.Location = new System.Drawing.Point(405, 14);
|
|||
|
|
this.label20.Name = "label20";
|
|||
|
|
this.label20.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label20.TabIndex = 43;
|
|||
|
|
this.label20.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label21
|
|||
|
|
//
|
|||
|
|
this.label21.AutoSize = true;
|
|||
|
|
this.label21.Location = new System.Drawing.Point(267, 50);
|
|||
|
|
this.label21.Name = "label21";
|
|||
|
|
this.label21.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label21.TabIndex = 44;
|
|||
|
|
this.label21.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label22
|
|||
|
|
//
|
|||
|
|
this.label22.AutoSize = true;
|
|||
|
|
this.label22.Location = new System.Drawing.Point(267, 89);
|
|||
|
|
this.label22.Name = "label22";
|
|||
|
|
this.label22.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label22.TabIndex = 45;
|
|||
|
|
this.label22.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label23
|
|||
|
|
//
|
|||
|
|
this.label23.AutoSize = true;
|
|||
|
|
this.label23.Location = new System.Drawing.Point(405, 89);
|
|||
|
|
this.label23.Name = "label23";
|
|||
|
|
this.label23.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label23.TabIndex = 46;
|
|||
|
|
this.label23.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label24
|
|||
|
|
//
|
|||
|
|
this.label24.AutoSize = true;
|
|||
|
|
this.label24.Location = new System.Drawing.Point(405, 114);
|
|||
|
|
this.label24.Name = "label24";
|
|||
|
|
this.label24.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label24.TabIndex = 48;
|
|||
|
|
this.label24.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label25
|
|||
|
|
//
|
|||
|
|
this.label25.AutoSize = true;
|
|||
|
|
this.label25.Location = new System.Drawing.Point(267, 114);
|
|||
|
|
this.label25.Name = "label25";
|
|||
|
|
this.label25.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label25.TabIndex = 47;
|
|||
|
|
this.label25.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label26
|
|||
|
|
//
|
|||
|
|
this.label26.AutoSize = true;
|
|||
|
|
this.label26.Location = new System.Drawing.Point(405, 144);
|
|||
|
|
this.label26.Name = "label26";
|
|||
|
|
this.label26.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label26.TabIndex = 50;
|
|||
|
|
this.label26.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label27
|
|||
|
|
//
|
|||
|
|
this.label27.AutoSize = true;
|
|||
|
|
this.label27.Location = new System.Drawing.Point(267, 144);
|
|||
|
|
this.label27.Name = "label27";
|
|||
|
|
this.label27.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label27.TabIndex = 49;
|
|||
|
|
this.label27.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label28
|
|||
|
|
//
|
|||
|
|
this.label28.AutoSize = true;
|
|||
|
|
this.label28.Location = new System.Drawing.Point(405, 171);
|
|||
|
|
this.label28.Name = "label28";
|
|||
|
|
this.label28.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label28.TabIndex = 52;
|
|||
|
|
this.label28.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label29
|
|||
|
|
//
|
|||
|
|
this.label29.AutoSize = true;
|
|||
|
|
this.label29.Location = new System.Drawing.Point(267, 171);
|
|||
|
|
this.label29.Name = "label29";
|
|||
|
|
this.label29.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label29.TabIndex = 51;
|
|||
|
|
this.label29.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label30
|
|||
|
|
//
|
|||
|
|
this.label30.AutoSize = true;
|
|||
|
|
this.label30.Location = new System.Drawing.Point(407, 195);
|
|||
|
|
this.label30.Name = "label30";
|
|||
|
|
this.label30.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label30.TabIndex = 54;
|
|||
|
|
this.label30.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// label31
|
|||
|
|
//
|
|||
|
|
this.label31.AutoSize = true;
|
|||
|
|
this.label31.Location = new System.Drawing.Point(269, 195);
|
|||
|
|
this.label31.Name = "label31";
|
|||
|
|
this.label31.Size = new System.Drawing.Size(29, 12);
|
|||
|
|
this.label31.TabIndex = 53;
|
|||
|
|
this.label31.Text = "0.00";
|
|||
|
|
//
|
|||
|
|
// button1
|
|||
|
|
//
|
|||
|
|
this.button1.Location = new System.Drawing.Point(126, 223);
|
|||
|
|
this.button1.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.button1.Name = "button1";
|
|||
|
|
this.button1.Size = new System.Drawing.Size(115, 41);
|
|||
|
|
this.button1.TabIndex = 55;
|
|||
|
|
this.button1.Text = "清空下框";
|
|||
|
|
this.button1.UseVisualStyleBackColor = true;
|
|||
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|||
|
|
//
|
|||
|
|
// button2
|
|||
|
|
//
|
|||
|
|
this.button2.Location = new System.Drawing.Point(245, 223);
|
|||
|
|
this.button2.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.button2.Name = "button2";
|
|||
|
|
this.button2.Size = new System.Drawing.Size(112, 41);
|
|||
|
|
this.button2.TabIndex = 56;
|
|||
|
|
this.button2.Text = "关机下发";
|
|||
|
|
this.button2.UseVisualStyleBackColor = true;
|
|||
|
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|||
|
|
//
|
|||
|
|
// button3
|
|||
|
|
//
|
|||
|
|
this.button3.Location = new System.Drawing.Point(363, 223);
|
|||
|
|
this.button3.Margin = new System.Windows.Forms.Padding(2);
|
|||
|
|
this.button3.Name = "button3";
|
|||
|
|
this.button3.Size = new System.Drawing.Size(112, 41);
|
|||
|
|
this.button3.TabIndex = 57;
|
|||
|
|
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(486, 708);
|
|||
|
|
this.Controls.Add(this.button3);
|
|||
|
|
this.Controls.Add(this.button2);
|
|||
|
|
this.Controls.Add(this.button1);
|
|||
|
|
this.Controls.Add(this.label30);
|
|||
|
|
this.Controls.Add(this.label31);
|
|||
|
|
this.Controls.Add(this.label28);
|
|||
|
|
this.Controls.Add(this.label29);
|
|||
|
|
this.Controls.Add(this.label26);
|
|||
|
|
this.Controls.Add(this.label27);
|
|||
|
|
this.Controls.Add(this.label24);
|
|||
|
|
this.Controls.Add(this.label25);
|
|||
|
|
this.Controls.Add(this.label23);
|
|||
|
|
this.Controls.Add(this.label22);
|
|||
|
|
this.Controls.Add(this.label21);
|
|||
|
|
this.Controls.Add(this.label20);
|
|||
|
|
this.Controls.Add(this.label19);
|
|||
|
|
this.Controls.Add(this.label18);
|
|||
|
|
this.Controls.Add(this.label17);
|
|||
|
|
this.Controls.Add(this.label13);
|
|||
|
|
this.Controls.Add(this.label14);
|
|||
|
|
this.Controls.Add(this.label15);
|
|||
|
|
this.Controls.Add(this.label16);
|
|||
|
|
this.Controls.Add(this.label11);
|
|||
|
|
this.Controls.Add(this.label12);
|
|||
|
|
this.Controls.Add(this.label10);
|
|||
|
|
this.Controls.Add(this.label7);
|
|||
|
|
this.Controls.Add(this.label6);
|
|||
|
|
this.Controls.Add(this.label5);
|
|||
|
|
this.Controls.Add(this.label4);
|
|||
|
|
this.Controls.Add(this.textBox1);
|
|||
|
|
this.Controls.Add(this.stopbit_cbb);
|
|||
|
|
this.Controls.Add(this.label3);
|
|||
|
|
this.Controls.Add(this.databit_cbb);
|
|||
|
|
this.Controls.Add(this.label2);
|
|||
|
|
this.Controls.Add(this.parity_cbb);
|
|||
|
|
this.Controls.Add(this.label1);
|
|||
|
|
this.Controls.Add(this.open_btn);
|
|||
|
|
this.Controls.Add(this.baudrate_cbb);
|
|||
|
|
this.Controls.Add(this.portname_cbb);
|
|||
|
|
this.Controls.Add(this.label8);
|
|||
|
|
this.Controls.Add(this.label9);
|
|||
|
|
this.Name = "Form1";
|
|||
|
|
this.Text = "Form1";
|
|||
|
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
|
|||
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|||
|
|
this.ResumeLayout(false);
|
|||
|
|
this.PerformLayout();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
private System.Windows.Forms.ComboBox stopbit_cbb;
|
|||
|
|
private System.Windows.Forms.Label label3;
|
|||
|
|
private System.Windows.Forms.ComboBox databit_cbb;
|
|||
|
|
private System.Windows.Forms.Label label2;
|
|||
|
|
private System.Windows.Forms.ComboBox parity_cbb;
|
|||
|
|
private System.Windows.Forms.Label label1;
|
|||
|
|
private System.Windows.Forms.Button open_btn;
|
|||
|
|
private System.Windows.Forms.ComboBox baudrate_cbb;
|
|||
|
|
private System.Windows.Forms.ComboBox portname_cbb;
|
|||
|
|
private System.Windows.Forms.Label label8;
|
|||
|
|
private System.Windows.Forms.Label label9;
|
|||
|
|
private System.IO.Ports.SerialPort serialPort1;
|
|||
|
|
private System.Windows.Forms.TextBox textBox1;
|
|||
|
|
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.Label label10;
|
|||
|
|
private System.Windows.Forms.Label label11;
|
|||
|
|
private System.Windows.Forms.Label label12;
|
|||
|
|
private System.Windows.Forms.Label label13;
|
|||
|
|
private System.Windows.Forms.Label label14;
|
|||
|
|
private System.Windows.Forms.Label label15;
|
|||
|
|
private System.Windows.Forms.Label label16;
|
|||
|
|
private System.Windows.Forms.Label label17;
|
|||
|
|
private System.Windows.Forms.Label label18;
|
|||
|
|
private System.Windows.Forms.Label label19;
|
|||
|
|
private System.Windows.Forms.Label label20;
|
|||
|
|
private System.Windows.Forms.Label label21;
|
|||
|
|
private System.Windows.Forms.Label label22;
|
|||
|
|
private System.Windows.Forms.Label label23;
|
|||
|
|
private System.Windows.Forms.Label label24;
|
|||
|
|
private System.Windows.Forms.Label label25;
|
|||
|
|
private System.Windows.Forms.Label label26;
|
|||
|
|
private System.Windows.Forms.Label label27;
|
|||
|
|
private System.Windows.Forms.Label label28;
|
|||
|
|
private System.Windows.Forms.Label label29;
|
|||
|
|
private System.Windows.Forms.Label label30;
|
|||
|
|
private System.Windows.Forms.Label label31;
|
|||
|
|
private System.Windows.Forms.Button button1;
|
|||
|
|
private System.Windows.Forms.Button button2;
|
|||
|
|
private System.Windows.Forms.Button button3;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|