代码拉取完成,页面将自动刷新
namespace 串口通讯
{
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.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
this.button5 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button6 = new System.Windows.Forms.Button();
this.my_LED1 = new 串口通讯.My_LED();
this.my_LED2 = new 串口通讯.My_LED();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(90, 36);
this.button1.TabIndex = 0;
this.button1.Text = "打开串口";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(150, 12);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 36);
this.button2.TabIndex = 1;
this.button2.Text = "发送";
this.button2.UseVisualStyleBackColor = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(157, 86);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(52, 15);
this.label1.TabIndex = 2;
this.label1.Text = "端口号";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(157, 136);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(52, 15);
this.label2.TabIndex = 4;
this.label2.Text = "波特率";
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(231, 83);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 23);
this.comboBox1.TabIndex = 5;
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"1200",
"2400",
"4800",
"9600",
"14400",
"19200",
"28800",
"115200"});
this.comboBox2.Location = new System.Drawing.Point(231, 133);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(121, 23);
this.comboBox2.TabIndex = 6;
this.comboBox2.Text = "9600";
//
// button3
//
this.button3.Location = new System.Drawing.Point(82, 250);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 48);
this.button3.TabIndex = 7;
this.button3.Text = "点灯";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(240, 250);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(97, 48);
this.button4.TabIndex = 8;
this.button4.Text = "继电器吸合";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(246, 12);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(157, 36);
this.textBox1.TabIndex = 9;
//
// button5
//
this.button5.Location = new System.Drawing.Point(12, 71);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(90, 44);
this.button5.TabIndex = 10;
this.button5.Text = "刷新串口";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// textBox2
//
this.textBox2.AcceptsTab = true;
this.textBox2.Location = new System.Drawing.Point(12, 196);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(391, 44);
this.textBox2.TabIndex = 12;
//
// button6
//
this.button6.Location = new System.Drawing.Point(12, 136);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(90, 45);
this.button6.TabIndex = 13;
this.button6.Text = "检测状态";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// my_LED1
//
this.my_LED1.BorderWidth = 5;
this.my_LED1.CenterColor = System.Drawing.Color.White;
this.my_LED1.FlashInterval = 500;
this.my_LED1.GapWidth = 5;
this.my_LED1.IsBorder = false;
this.my_LED1.IsFlash = false;
this.my_LED1.IsHighLight = true;
this.my_LED1.LampColor = new System.Drawing.Color[] {
System.Drawing.Color.Green,
System.Drawing.Color.Yellow};
this.my_LED1.LedColor = System.Drawing.Color.Green;
this.my_LED1.LedFalseColor = System.Drawing.Color.Red;
this.my_LED1.LedStatus = false;
this.my_LED1.LedTrueColor = System.Drawing.Color.Green;
this.my_LED1.Location = new System.Drawing.Point(97, 318);
this.my_LED1.Name = "my_LED1";
this.my_LED1.Size = new System.Drawing.Size(49, 51);
this.my_LED1.TabIndex = 11;
//
// my_LED2
//
this.my_LED2.BorderWidth = 5;
this.my_LED2.CenterColor = System.Drawing.Color.White;
this.my_LED2.FlashInterval = 500;
this.my_LED2.GapWidth = 5;
this.my_LED2.IsBorder = false;
this.my_LED2.IsFlash = false;
this.my_LED2.IsHighLight = true;
this.my_LED2.LampColor = new System.Drawing.Color[] {
System.Drawing.Color.Green,
System.Drawing.Color.Yellow};
this.my_LED2.LedColor = System.Drawing.Color.Green;
this.my_LED2.LedFalseColor = System.Drawing.Color.Red;
this.my_LED2.LedStatus = false;
this.my_LED2.LedTrueColor = System.Drawing.Color.Green;
this.my_LED2.Location = new System.Drawing.Point(264, 318);
this.my_LED2.Name = "my_LED2";
this.my_LED2.Size = new System.Drawing.Size(49, 51);
this.my_LED2.TabIndex = 14;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(415, 427);
this.Controls.Add(this.my_LED2);
this.Controls.Add(this.button6);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.my_LED1);
this.Controls.Add(this.button5);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form1";
this.Text = "串口通讯电子作品设计";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox1;
private System.IO.Ports.SerialPort serialPort1;
private System.Windows.Forms.Button button5;
private My_LED my_LED1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button6;
private My_LED my_LED2;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。