加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Form1.Designer.cs 14.57 KB
一键复制 编辑 原始数据 按行查看 历史
using System.ComponentModel;
namespace WSD
{
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.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btn_Open = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.cBox_ExamBot = new System.Windows.Forms.ComboBox();
this.cBox_StopBit = new System.Windows.Forms.ComboBox();
this.cBox_BaudRate = new System.Windows.Forms.ComboBox();
this.cBox_DateBit = new System.Windows.Forms.ComboBox();
this.cBox_comport = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.tmUpdate = new System.Windows.Forms.Timer(this.components);
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
this.SuspendLayout();
//
// serialPort1
//
this.serialPort1.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort1_DataReceived);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btn_Open);
this.groupBox1.Controls.Add(this.btn_Close);
this.groupBox1.Controls.Add(this.cBox_ExamBot);
this.groupBox1.Controls.Add(this.cBox_StopBit);
this.groupBox1.Controls.Add(this.cBox_BaudRate);
this.groupBox1.Controls.Add(this.cBox_DateBit);
this.groupBox1.Controls.Add(this.cBox_comport);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(12, 13);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(1385, 99);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "串口设置";
//
// btn_Open
//
this.btn_Open.Location = new System.Drawing.Point(1090, 37);
this.btn_Open.Name = "btn_Open";
this.btn_Open.Size = new System.Drawing.Size(126, 36);
this.btn_Open.TabIndex = 2;
this.btn_Open.Text = "打开串口";
this.btn_Open.UseVisualStyleBackColor = true;
this.btn_Open.Click += new System.EventHandler(this.btn_Open_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1243, 37);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(126, 36);
this.btn_Close.TabIndex = 2;
this.btn_Close.Text = "关闭串口";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// cBox_ExamBot
//
this.cBox_ExamBot.Enabled = false;
this.cBox_ExamBot.FormattingEnabled = true;
this.cBox_ExamBot.Items.AddRange(new object[] {
"None"});
this.cBox_ExamBot.Location = new System.Drawing.Point(935, 42);
this.cBox_ExamBot.Name = "cBox_ExamBot";
this.cBox_ExamBot.Size = new System.Drawing.Size(121, 29);
this.cBox_ExamBot.TabIndex = 1;
this.cBox_ExamBot.Text = "None";
this.cBox_ExamBot.SelectedValueChanged += new System.EventHandler(this.cBox_ExamBot_SelectedValueChanged);
//
// cBox_StopBit
//
this.cBox_StopBit.Enabled = false;
this.cBox_StopBit.FormattingEnabled = true;
this.cBox_StopBit.Items.AddRange(new object[] {
"None",
"One",
"Two",
"OnePointFive"});
this.cBox_StopBit.Location = new System.Drawing.Point(726, 42);
this.cBox_StopBit.Name = "cBox_StopBit";
this.cBox_StopBit.Size = new System.Drawing.Size(121, 29);
this.cBox_StopBit.TabIndex = 1;
this.cBox_StopBit.Text = "One";
this.cBox_StopBit.SelectedValueChanged += new System.EventHandler(this.cBox_StopBit_SelectedValueChanged);
//
// cBox_BaudRate
//
this.cBox_BaudRate.Enabled = false;
this.cBox_BaudRate.FormattingEnabled = true;
this.cBox_BaudRate.Items.AddRange(new object[] {
"9600",
"14400",
"19200"});
this.cBox_BaudRate.Location = new System.Drawing.Point(308, 42);
this.cBox_BaudRate.Name = "cBox_BaudRate";
this.cBox_BaudRate.Size = new System.Drawing.Size(121, 29);
this.cBox_BaudRate.TabIndex = 1;
this.cBox_BaudRate.Text = "9600";
this.cBox_BaudRate.SelectedValueChanged += new System.EventHandler(this.cBox_BaudRate_SelectedValueChanged);
//
// cBox_DateBit
//
this.cBox_DateBit.Enabled = false;
this.cBox_DateBit.FormattingEnabled = true;
this.cBox_DateBit.Items.AddRange(new object[] {
"8",
"4",
"2"});
this.cBox_DateBit.Location = new System.Drawing.Point(517, 42);
this.cBox_DateBit.Name = "cBox_DateBit";
this.cBox_DateBit.Size = new System.Drawing.Size(121, 29);
this.cBox_DateBit.TabIndex = 1;
this.cBox_DateBit.Text = "8";
this.cBox_DateBit.SelectedValueChanged += new System.EventHandler(this.cBox_DateBit_SelectedValueChanged);
//
// cBox_comport
//
this.cBox_comport.FormattingEnabled = true;
this.cBox_comport.Location = new System.Drawing.Point(99, 42);
this.cBox_comport.Name = "cBox_comport";
this.cBox_comport.Size = new System.Drawing.Size(121, 29);
this.cBox_comport.TabIndex = 1;
this.cBox_comport.SelectedValueChanged += new System.EventHandler(this.cBox_comport_SelectedValueChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(852, 45);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(94, 21);
this.label5.TabIndex = 0;
this.label5.Text = "检验位:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(644, 45);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(94, 21);
this.label4.TabIndex = 0;
this.label4.Text = "停止位:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(226, 45);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(94, 21);
this.label2.TabIndex = 0;
this.label2.Text = "波特率:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(434, 45);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(94, 21);
this.label3.TabIndex = 0;
this.label3.Text = "数据位:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 45);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(94, 21);
this.label1.TabIndex = 0;
this.label1.Text = "串口号:";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.chart1);
this.groupBox2.Location = new System.Drawing.Point(12, 118);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(1385, 664);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "温湿度图表";
//
// chart1
//
chartArea1.AxisX.Interval = 5D;
chartArea1.AxisX.Maximum = 30D;
chartArea1.AxisX.Minimum = 0D;
chartArea1.AxisY.Interval = 3D;
chartArea1.AxisY.Maximum = 40D;
chartArea1.AxisY.Minimum = 22D;
chartArea1.AxisY2.Interval = 10D;
chartArea1.AxisY2.Maximum = 100D;
chartArea1.AxisY2.Minimum = 40D;
chartArea1.Name = "ChartArea1";
this.chart1.ChartAreas.Add(chartArea1);
legend1.Name = "Legend1";
this.chart1.Legends.Add(legend1);
this.chart1.Location = new System.Drawing.Point(20, 30);
this.chart1.Name = "chart1";
series1.ChartArea = "ChartArea1";
series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
series1.Legend = "Legend1";
series1.MarkerColor = System.Drawing.Color.Blue;
series1.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Square;
series1.Name = "Tempreture";
series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Single;
series2.ChartArea = "ChartArea1";
series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
series2.Legend = "Legend1";
series2.MarkerColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
series2.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Triangle;
series2.Name = "Humidity";
series2.YAxisType = System.Windows.Forms.DataVisualization.Charting.AxisType.Secondary;
series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Single;
this.chart1.Series.Add(series1);
this.chart1.Series.Add(series2);
this.chart1.Size = new System.Drawing.Size(1359, 628);
this.chart1.TabIndex = 0;
this.chart1.Text = "chart1";
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// tmUpdate
//
this.tmUpdate.Interval = 200;
this.tmUpdate.Tick += new System.EventHandler(this.tmUpdate_Tick);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1409, 792);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Margin = new System.Windows.Forms.Padding(4, 1, 4, 1);
this.Name = "Form1";
this.Text = "Form1";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.IO.Ports.SerialPort serialPort1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.ComboBox cBox_ExamBot;
private System.Windows.Forms.ComboBox cBox_StopBit;
private System.Windows.Forms.ComboBox cBox_BaudRate;
private System.Windows.Forms.ComboBox cBox_DateBit;
private System.Windows.Forms.ComboBox cBox_comport;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
private System.Windows.Forms.Button btn_Open;
private System.Windows.Forms.Timer tmUpdate;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化