You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
318 lines
14 KiB
318 lines
14 KiB
namespace QMAPP.WinForm.Forms.DeviceInterface
|
|
{
|
|
partial class LeakInspection
|
|
{
|
|
/// <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.cbPortName = new System.Windows.Forms.ComboBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.btnStartListening = new System.Windows.Forms.Button();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.lvCheckResults = new System.Windows.Forms.ListView();
|
|
this.chBarcode = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.chResult = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.chDate = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.chSyncState = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
|
|
this.cbBaudRate = new System.Windows.Forms.ComboBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.cbDataBits = new System.Windows.Forms.ComboBox();
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
this.cbParity = new System.Windows.Forms.ComboBox();
|
|
this.cbStopBit = new System.Windows.Forms.ComboBox();
|
|
this.btnStop = new System.Windows.Forms.Button();
|
|
this.lbReceivedData = new System.Windows.Forms.ListBox();
|
|
this.cbDTR = new System.Windows.Forms.CheckBox();
|
|
this.cbRTS = new System.Windows.Forms.CheckBox();
|
|
this.SuspendLayout();
|
|
//
|
|
// cbPortName
|
|
//
|
|
this.cbPortName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cbPortName.FormattingEnabled = true;
|
|
this.cbPortName.Location = new System.Drawing.Point(55, 7);
|
|
this.cbPortName.Name = "cbPortName";
|
|
this.cbPortName.Size = new System.Drawing.Size(66, 20);
|
|
this.cbPortName.TabIndex = 0;
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(20, 11);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(29, 12);
|
|
this.label1.TabIndex = 1;
|
|
this.label1.Text = "端口";
|
|
//
|
|
// btnStartListening
|
|
//
|
|
this.btnStartListening.Location = new System.Drawing.Point(10, 83);
|
|
this.btnStartListening.Name = "btnStartListening";
|
|
this.btnStartListening.Size = new System.Drawing.Size(111, 36);
|
|
this.btnStartListening.TabIndex = 7;
|
|
this.btnStartListening.Text = "开始接收";
|
|
this.btnStartListening.UseVisualStyleBackColor = true;
|
|
this.btnStartListening.Click += new System.EventHandler(this.btnStartListening_Click);
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(8, 36);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(41, 12);
|
|
this.label2.TabIndex = 1;
|
|
this.label2.Text = "波特率";
|
|
//
|
|
// lvCheckResults
|
|
//
|
|
this.lvCheckResults.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.lvCheckResults.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
this.chBarcode,
|
|
this.chResult,
|
|
this.chDate,
|
|
this.chSyncState});
|
|
this.lvCheckResults.GridLines = true;
|
|
this.lvCheckResults.Location = new System.Drawing.Point(493, 3);
|
|
this.lvCheckResults.Name = "lvCheckResults";
|
|
this.lvCheckResults.Size = new System.Drawing.Size(494, 124);
|
|
this.lvCheckResults.TabIndex = 10;
|
|
this.lvCheckResults.UseCompatibleStateImageBehavior = false;
|
|
this.lvCheckResults.View = System.Windows.Forms.View.Details;
|
|
//
|
|
// chBarcode
|
|
//
|
|
this.chBarcode.Text = "零件条码";
|
|
this.chBarcode.Width = 250;
|
|
//
|
|
// chResult
|
|
//
|
|
this.chResult.Text = "检测结果";
|
|
this.chResult.Width = 87;
|
|
//
|
|
// chDate
|
|
//
|
|
this.chDate.Text = "时间";
|
|
this.chDate.Width = 190;
|
|
//
|
|
// chSyncState
|
|
//
|
|
this.chSyncState.Text = "数据同步";
|
|
this.chSyncState.Width = 80;
|
|
//
|
|
// serialPort1
|
|
//
|
|
this.serialPort1.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort1_DataReceived);
|
|
//
|
|
// cbBaudRate
|
|
//
|
|
this.cbBaudRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cbBaudRate.FormattingEnabled = true;
|
|
this.cbBaudRate.Items.AddRange(new object[] {
|
|
"110",
|
|
"300",
|
|
"600",
|
|
"1200",
|
|
"2400",
|
|
"4800",
|
|
"9600",
|
|
"14400",
|
|
"19200",
|
|
"38400",
|
|
"56000",
|
|
"57600",
|
|
"115200",
|
|
"128000",
|
|
"256000"});
|
|
this.cbBaudRate.Location = new System.Drawing.Point(55, 32);
|
|
this.cbBaudRate.Name = "cbBaudRate";
|
|
this.cbBaudRate.Size = new System.Drawing.Size(66, 20);
|
|
this.cbBaudRate.TabIndex = 1;
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(8, 62);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(41, 12);
|
|
this.label3.TabIndex = 4;
|
|
this.label3.Text = "数据位";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(127, 36);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(41, 12);
|
|
this.label4.TabIndex = 5;
|
|
this.label4.Text = "停止位";
|
|
//
|
|
// cbDataBits
|
|
//
|
|
this.cbDataBits.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cbDataBits.FormattingEnabled = true;
|
|
this.cbDataBits.Items.AddRange(new object[] {
|
|
"5",
|
|
"6",
|
|
"7",
|
|
"8"});
|
|
this.cbDataBits.Location = new System.Drawing.Point(55, 58);
|
|
this.cbDataBits.Name = "cbDataBits";
|
|
this.cbDataBits.Size = new System.Drawing.Size(66, 20);
|
|
this.cbDataBits.TabIndex = 3;
|
|
//
|
|
// label8
|
|
//
|
|
this.label8.AutoSize = true;
|
|
this.label8.Location = new System.Drawing.Point(127, 11);
|
|
this.label8.Name = "label8";
|
|
this.label8.Size = new System.Drawing.Size(41, 12);
|
|
this.label8.TabIndex = 10;
|
|
this.label8.Text = "校验位";
|
|
//
|
|
// cbParity
|
|
//
|
|
this.cbParity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cbParity.FormattingEnabled = true;
|
|
this.cbParity.Location = new System.Drawing.Point(174, 7);
|
|
this.cbParity.Name = "cbParity";
|
|
this.cbParity.Size = new System.Drawing.Size(63, 20);
|
|
this.cbParity.TabIndex = 2;
|
|
//
|
|
// cbStopBit
|
|
//
|
|
this.cbStopBit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cbStopBit.FormattingEnabled = true;
|
|
this.cbStopBit.Location = new System.Drawing.Point(174, 32);
|
|
this.cbStopBit.Name = "cbStopBit";
|
|
this.cbStopBit.Size = new System.Drawing.Size(63, 20);
|
|
this.cbStopBit.TabIndex = 4;
|
|
//
|
|
// btnStop
|
|
//
|
|
this.btnStop.Location = new System.Drawing.Point(129, 83);
|
|
this.btnStop.Name = "btnStop";
|
|
this.btnStop.Size = new System.Drawing.Size(108, 36);
|
|
this.btnStop.TabIndex = 8;
|
|
this.btnStop.Text = "停止接收";
|
|
this.btnStop.UseVisualStyleBackColor = true;
|
|
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
|
|
//
|
|
// lbReceivedData
|
|
//
|
|
this.lbReceivedData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)));
|
|
this.lbReceivedData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.lbReceivedData.FormattingEnabled = true;
|
|
this.lbReceivedData.ItemHeight = 17;
|
|
this.lbReceivedData.Location = new System.Drawing.Point(243, 3);
|
|
this.lbReceivedData.Name = "lbReceivedData";
|
|
this.lbReceivedData.Size = new System.Drawing.Size(247, 123);
|
|
this.lbReceivedData.TabIndex = 9;
|
|
//
|
|
// cbDTR
|
|
//
|
|
this.cbDTR.AutoSize = true;
|
|
this.cbDTR.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.cbDTR.Location = new System.Drawing.Point(146, 58);
|
|
this.cbDTR.Name = "cbDTR";
|
|
this.cbDTR.Size = new System.Drawing.Size(42, 16);
|
|
this.cbDTR.TabIndex = 5;
|
|
this.cbDTR.Text = "DTR";
|
|
this.cbDTR.UseVisualStyleBackColor = true;
|
|
//
|
|
// cbRTS
|
|
//
|
|
this.cbRTS.AutoSize = true;
|
|
this.cbRTS.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.cbRTS.Location = new System.Drawing.Point(192, 58);
|
|
this.cbRTS.Name = "cbRTS";
|
|
this.cbRTS.Size = new System.Drawing.Size(42, 16);
|
|
this.cbRTS.TabIndex = 6;
|
|
this.cbRTS.Text = "RTS";
|
|
this.cbRTS.UseVisualStyleBackColor = true;
|
|
//
|
|
// LeakInspection
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(989, 129);
|
|
this.Controls.Add(this.lbReceivedData);
|
|
this.Controls.Add(this.btnStop);
|
|
this.Controls.Add(this.cbRTS);
|
|
this.Controls.Add(this.cbDTR);
|
|
this.Controls.Add(this.cbStopBit);
|
|
this.Controls.Add(this.cbParity);
|
|
this.Controls.Add(this.label8);
|
|
this.Controls.Add(this.cbDataBits);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.lvCheckResults);
|
|
this.Controls.Add(this.btnStartListening);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.cbBaudRate);
|
|
this.Controls.Add(this.cbPortName);
|
|
this.MinimumSize = new System.Drawing.Size(800, 160);
|
|
this.Name = "LeakInspection";
|
|
this.Text = "漏装检测接口";
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LeakInspection_FormClosing);
|
|
this.Load += new System.EventHandler(this.LeakInspection_Load);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.ComboBox cbPortName;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Button btnStartListening;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.ListView lvCheckResults;
|
|
private System.Windows.Forms.ColumnHeader chBarcode;
|
|
private System.Windows.Forms.ColumnHeader chResult;
|
|
private System.Windows.Forms.ColumnHeader chDate;
|
|
private System.IO.Ports.SerialPort serialPort1;
|
|
private System.Windows.Forms.ComboBox cbBaudRate;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.ComboBox cbDataBits;
|
|
private System.Windows.Forms.Label label8;
|
|
private System.Windows.Forms.ComboBox cbParity;
|
|
private System.Windows.Forms.ComboBox cbStopBit;
|
|
private System.Windows.Forms.Button btnStop;
|
|
private System.Windows.Forms.ListBox lbReceivedData;
|
|
private System.Windows.Forms.CheckBox cbDTR;
|
|
private System.Windows.Forms.CheckBox cbRTS;
|
|
private System.Windows.Forms.ColumnHeader chSyncState;
|
|
}
|
|
}
|