|
|
|
@ -0,0 +1,184 @@ |
|
|
|
|
namespace RS232Test |
|
|
|
|
{ |
|
|
|
|
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 Form 디자이너에서 생성한 코드 |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 디자이너 지원에 필요한 메서드입니다. |
|
|
|
|
/// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. |
|
|
|
|
/// </summary> |
|
|
|
|
private void InitializeComponent() |
|
|
|
|
{ |
|
|
|
|
this.components = new System.ComponentModel.Container(); |
|
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); |
|
|
|
|
this.serialPort = new System.IO.Ports.SerialPort(this.components); |
|
|
|
|
this.portComboBox = new System.Windows.Forms.ComboBox(); |
|
|
|
|
this.Connect = new System.Windows.Forms.Button(); |
|
|
|
|
this.printText = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.commandText = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.Send = new System.Windows.Forms.Button(); |
|
|
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); |
|
|
|
|
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); |
|
|
|
|
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); |
|
|
|
|
this.tableLayoutPanel1.SuspendLayout(); |
|
|
|
|
this.tableLayoutPanel2.SuspendLayout(); |
|
|
|
|
this.tableLayoutPanel3.SuspendLayout(); |
|
|
|
|
this.SuspendLayout(); |
|
|
|
|
// |
|
|
|
|
// serialPort |
|
|
|
|
// |
|
|
|
|
this.serialPort.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort_DataReceived); |
|
|
|
|
// |
|
|
|
|
// portComboBox |
|
|
|
|
// |
|
|
|
|
this.portComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|
|
|
|
this.portComboBox.FormattingEnabled = true; |
|
|
|
|
this.portComboBox.Location = new System.Drawing.Point(3, 3); |
|
|
|
|
this.portComboBox.Name = "portComboBox"; |
|
|
|
|
this.portComboBox.Size = new System.Drawing.Size(121, 20); |
|
|
|
|
this.portComboBox.TabIndex = 0; |
|
|
|
|
this.portComboBox.SelectedIndexChanged += new System.EventHandler(this.portComboBox_SelectedIndexChanged); |
|
|
|
|
// |
|
|
|
|
// Connect |
|
|
|
|
// |
|
|
|
|
this.Connect.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
this.Connect.Location = new System.Drawing.Point(297, 3); |
|
|
|
|
this.Connect.Name = "Connect"; |
|
|
|
|
this.Connect.Size = new System.Drawing.Size(94, 23); |
|
|
|
|
this.Connect.TabIndex = 1; |
|
|
|
|
this.Connect.Text = "연결"; |
|
|
|
|
this.Connect.UseVisualStyleBackColor = true; |
|
|
|
|
this.Connect.Click += new System.EventHandler(this.Connect_Click); |
|
|
|
|
// |
|
|
|
|
// printText |
|
|
|
|
// |
|
|
|
|
this.printText.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
this.printText.Location = new System.Drawing.Point(3, 38); |
|
|
|
|
this.printText.Multiline = true; |
|
|
|
|
this.printText.Name = "printText"; |
|
|
|
|
this.printText.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; |
|
|
|
|
this.printText.Size = new System.Drawing.Size(394, 366); |
|
|
|
|
this.printText.TabIndex = 2; |
|
|
|
|
// |
|
|
|
|
// commandText |
|
|
|
|
// |
|
|
|
|
this.commandText.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
this.commandText.Location = new System.Drawing.Point(3, 3); |
|
|
|
|
this.commandText.Name = "commandText"; |
|
|
|
|
this.commandText.Size = new System.Drawing.Size(288, 21); |
|
|
|
|
this.commandText.TabIndex = 3; |
|
|
|
|
// |
|
|
|
|
// Send |
|
|
|
|
// |
|
|
|
|
this.Send.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
this.Send.Location = new System.Drawing.Point(297, 3); |
|
|
|
|
this.Send.Name = "Send"; |
|
|
|
|
this.Send.Size = new System.Drawing.Size(94, 23); |
|
|
|
|
this.Send.TabIndex = 4; |
|
|
|
|
this.Send.Text = "전송"; |
|
|
|
|
this.Send.UseVisualStyleBackColor = true; |
|
|
|
|
this.Send.Click += new System.EventHandler(this.Send_Click); |
|
|
|
|
// |
|
|
|
|
// tableLayoutPanel1 |
|
|
|
|
// |
|
|
|
|
this.tableLayoutPanel1.BackColor = System.Drawing.Color.White; |
|
|
|
|
this.tableLayoutPanel1.ColumnCount = 1; |
|
|
|
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|
|
|
|
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0); |
|
|
|
|
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 0, 2); |
|
|
|
|
this.tableLayoutPanel1.Controls.Add(this.printText, 0, 1); |
|
|
|
|
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); |
|
|
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; |
|
|
|
|
this.tableLayoutPanel1.RowCount = 3; |
|
|
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
|
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|
|
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
|
|
|
this.tableLayoutPanel1.Size = new System.Drawing.Size(400, 442); |
|
|
|
|
this.tableLayoutPanel1.TabIndex = 5; |
|
|
|
|
// |
|
|
|
|
// tableLayoutPanel2 |
|
|
|
|
// |
|
|
|
|
this.tableLayoutPanel2.BackColor = System.Drawing.Color.White; |
|
|
|
|
this.tableLayoutPanel2.ColumnCount = 2; |
|
|
|
|
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|
|
|
|
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F)); |
|
|
|
|
this.tableLayoutPanel2.Controls.Add(this.Connect, 1, 0); |
|
|
|
|
this.tableLayoutPanel2.Controls.Add(this.portComboBox, 0, 0); |
|
|
|
|
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3); |
|
|
|
|
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; |
|
|
|
|
this.tableLayoutPanel2.RowCount = 1; |
|
|
|
|
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|
|
|
|
this.tableLayoutPanel2.Size = new System.Drawing.Size(394, 29); |
|
|
|
|
this.tableLayoutPanel2.TabIndex = 6; |
|
|
|
|
// |
|
|
|
|
// tableLayoutPanel3 |
|
|
|
|
// |
|
|
|
|
this.tableLayoutPanel3.BackColor = System.Drawing.Color.White; |
|
|
|
|
this.tableLayoutPanel3.ColumnCount = 2; |
|
|
|
|
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|
|
|
|
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F)); |
|
|
|
|
this.tableLayoutPanel3.Controls.Add(this.Send, 1, 0); |
|
|
|
|
this.tableLayoutPanel3.Controls.Add(this.commandText, 0, 0); |
|
|
|
|
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 410); |
|
|
|
|
this.tableLayoutPanel3.Name = "tableLayoutPanel3"; |
|
|
|
|
this.tableLayoutPanel3.RowCount = 1; |
|
|
|
|
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|
|
|
|
this.tableLayoutPanel3.Size = new System.Drawing.Size(394, 29); |
|
|
|
|
this.tableLayoutPanel3.TabIndex = 6; |
|
|
|
|
// |
|
|
|
|
// Form1 |
|
|
|
|
// |
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
|
|
|
this.BackColor = System.Drawing.Color.White; |
|
|
|
|
this.ClientSize = new System.Drawing.Size(400, 442); |
|
|
|
|
this.Controls.Add(this.tableLayoutPanel1); |
|
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|
|
|
|
this.Name = "Form1"; |
|
|
|
|
this.Text = "RS232테스트"; |
|
|
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); |
|
|
|
|
this.tableLayoutPanel1.ResumeLayout(false); |
|
|
|
|
this.tableLayoutPanel1.PerformLayout(); |
|
|
|
|
this.tableLayoutPanel2.ResumeLayout(false); |
|
|
|
|
this.tableLayoutPanel3.ResumeLayout(false); |
|
|
|
|
this.tableLayoutPanel3.PerformLayout(); |
|
|
|
|
this.ResumeLayout(false); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
private System.IO.Ports.SerialPort serialPort; |
|
|
|
|
private System.Windows.Forms.Button Connect; |
|
|
|
|
private System.Windows.Forms.TextBox printText; |
|
|
|
|
private System.Windows.Forms.ComboBox portComboBox; |
|
|
|
|
private System.Windows.Forms.TextBox commandText; |
|
|
|
|
private System.Windows.Forms.Button Send; |
|
|
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; |
|
|
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; |
|
|
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|