|
|
@ -0,0 +1,443 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace ModbusSlave |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
partial class MainForm |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/// <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.groupBox1 = new System.Windows.Forms.GroupBox(); |
|
|
|
|
|
|
|
this.btnStop = new System.Windows.Forms.Button(); |
|
|
|
|
|
|
|
this.btnRun = new System.Windows.Forms.Button(); |
|
|
|
|
|
|
|
this.nudAddress = new System.Windows.Forms.NumericUpDown(); |
|
|
|
|
|
|
|
this.label3 = new System.Windows.Forms.Label(); |
|
|
|
|
|
|
|
this.nudPort = new System.Windows.Forms.NumericUpDown(); |
|
|
|
|
|
|
|
this.label2 = new System.Windows.Forms.Label(); |
|
|
|
|
|
|
|
this.tbStatus = new System.Windows.Forms.TextBox(); |
|
|
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label(); |
|
|
|
|
|
|
|
this.groupBox2 = new System.Windows.Forms.GroupBox(); |
|
|
|
|
|
|
|
this.chkAutoScroll = new System.Windows.Forms.CheckBox(); |
|
|
|
|
|
|
|
this.btnClear = new System.Windows.Forms.Button(); |
|
|
|
|
|
|
|
this.rtbLog = new System.Windows.Forms.RichTextBox(); |
|
|
|
|
|
|
|
this.tabControl1 = new System.Windows.Forms.TabControl(); |
|
|
|
|
|
|
|
this.tabPage1 = new System.Windows.Forms.TabPage(); |
|
|
|
|
|
|
|
this.lv0x = new System.Windows.Forms.ListView(); |
|
|
|
|
|
|
|
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.tabPage2 = new System.Windows.Forms.TabPage(); |
|
|
|
|
|
|
|
this.lv1x = new System.Windows.Forms.ListView(); |
|
|
|
|
|
|
|
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.tabPage3 = new System.Windows.Forms.TabPage(); |
|
|
|
|
|
|
|
this.lv3x = new System.Windows.Forms.ListView(); |
|
|
|
|
|
|
|
this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.tabPage4 = new System.Windows.Forms.TabPage(); |
|
|
|
|
|
|
|
this.lv4x = new System.Windows.Forms.ListView(); |
|
|
|
|
|
|
|
this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
|
|
|
|
this.groupBox1.SuspendLayout(); |
|
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudAddress)).BeginInit(); |
|
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).BeginInit(); |
|
|
|
|
|
|
|
this.groupBox2.SuspendLayout(); |
|
|
|
|
|
|
|
this.tabControl1.SuspendLayout(); |
|
|
|
|
|
|
|
this.tabPage1.SuspendLayout(); |
|
|
|
|
|
|
|
this.tabPage2.SuspendLayout(); |
|
|
|
|
|
|
|
this.tabPage3.SuspendLayout(); |
|
|
|
|
|
|
|
this.tabPage4.SuspendLayout(); |
|
|
|
|
|
|
|
this.SuspendLayout(); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// groupBox1 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.btnStop); |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.btnRun); |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.nudAddress); |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.label3); |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.nudPort); |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.label2); |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.tbStatus); |
|
|
|
|
|
|
|
this.groupBox1.Controls.Add(this.label1); |
|
|
|
|
|
|
|
this.groupBox1.Location = new System.Drawing.Point(12, 12); |
|
|
|
|
|
|
|
this.groupBox1.Name = "groupBox1"; |
|
|
|
|
|
|
|
this.groupBox1.Size = new System.Drawing.Size(250, 131); |
|
|
|
|
|
|
|
this.groupBox1.TabIndex = 0; |
|
|
|
|
|
|
|
this.groupBox1.TabStop = false; |
|
|
|
|
|
|
|
this.groupBox1.Text = "Server"; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// btnStop |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.btnStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|
|
|
|
|
|
|
this.btnStop.Location = new System.Drawing.Point(162, 99); |
|
|
|
|
|
|
|
this.btnStop.Name = "btnStop"; |
|
|
|
|
|
|
|
this.btnStop.Size = new System.Drawing.Size(75, 23); |
|
|
|
|
|
|
|
this.btnStop.TabIndex = 3; |
|
|
|
|
|
|
|
this.btnStop.Text = "Stop"; |
|
|
|
|
|
|
|
this.btnStop.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
this.btnStop.Click += new System.EventHandler(this.btnStop_Click); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// btnRun |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.btnRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|
|
|
|
|
|
|
this.btnRun.Location = new System.Drawing.Point(81, 99); |
|
|
|
|
|
|
|
this.btnRun.Name = "btnRun"; |
|
|
|
|
|
|
|
this.btnRun.Size = new System.Drawing.Size(75, 23); |
|
|
|
|
|
|
|
this.btnRun.TabIndex = 3; |
|
|
|
|
|
|
|
this.btnRun.Text = "Run"; |
|
|
|
|
|
|
|
this.btnRun.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
this.btnRun.Click += new System.EventHandler(this.btnRun_Click); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// nudAddress |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.nudAddress.Location = new System.Drawing.Point(81, 72); |
|
|
|
|
|
|
|
this.nudAddress.Name = "nudAddress"; |
|
|
|
|
|
|
|
this.nudAddress.Size = new System.Drawing.Size(156, 21); |
|
|
|
|
|
|
|
this.nudAddress.TabIndex = 2; |
|
|
|
|
|
|
|
this.nudAddress.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// label3 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.label3.AutoSize = true; |
|
|
|
|
|
|
|
this.label3.Location = new System.Drawing.Point(7, 76); |
|
|
|
|
|
|
|
this.label3.Name = "label3"; |
|
|
|
|
|
|
|
this.label3.Size = new System.Drawing.Size(52, 12); |
|
|
|
|
|
|
|
this.label3.TabIndex = 0; |
|
|
|
|
|
|
|
this.label3.Text = "Address"; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// nudPort |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.nudPort.Location = new System.Drawing.Point(81, 45); |
|
|
|
|
|
|
|
this.nudPort.Maximum = new decimal(new int[] { |
|
|
|
|
|
|
|
65535, |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
0}); |
|
|
|
|
|
|
|
this.nudPort.Name = "nudPort"; |
|
|
|
|
|
|
|
this.nudPort.Size = new System.Drawing.Size(156, 21); |
|
|
|
|
|
|
|
this.nudPort.TabIndex = 2; |
|
|
|
|
|
|
|
this.nudPort.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
|
|
|
|
|
|
|
this.nudPort.Value = new decimal(new int[] { |
|
|
|
|
|
|
|
502, |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
0}); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// label2 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.label2.AutoSize = true; |
|
|
|
|
|
|
|
this.label2.Location = new System.Drawing.Point(7, 49); |
|
|
|
|
|
|
|
this.label2.Name = "label2"; |
|
|
|
|
|
|
|
this.label2.Size = new System.Drawing.Size(55, 12); |
|
|
|
|
|
|
|
this.label2.TabIndex = 0; |
|
|
|
|
|
|
|
this.label2.Text = "TCP port"; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// tbStatus |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.tbStatus.BackColor = System.Drawing.Color.Silver; |
|
|
|
|
|
|
|
this.tbStatus.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|
|
|
|
|
|
|
this.tbStatus.Location = new System.Drawing.Point(81, 18); |
|
|
|
|
|
|
|
this.tbStatus.Name = "tbStatus"; |
|
|
|
|
|
|
|
this.tbStatus.ReadOnly = true; |
|
|
|
|
|
|
|
this.tbStatus.Size = new System.Drawing.Size(156, 21); |
|
|
|
|
|
|
|
this.tbStatus.TabIndex = 1; |
|
|
|
|
|
|
|
this.tbStatus.Text = "Stop"; |
|
|
|
|
|
|
|
this.tbStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// label1 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.label1.AutoSize = true; |
|
|
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(7, 22); |
|
|
|
|
|
|
|
this.label1.Name = "label1"; |
|
|
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(40, 12); |
|
|
|
|
|
|
|
this.label1.TabIndex = 0; |
|
|
|
|
|
|
|
this.label1.Text = "Status"; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// groupBox2 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.groupBox2.Controls.Add(this.chkAutoScroll); |
|
|
|
|
|
|
|
this.groupBox2.Controls.Add(this.btnClear); |
|
|
|
|
|
|
|
this.groupBox2.Controls.Add(this.rtbLog); |
|
|
|
|
|
|
|
this.groupBox2.Location = new System.Drawing.Point(12, 149); |
|
|
|
|
|
|
|
this.groupBox2.Name = "groupBox2"; |
|
|
|
|
|
|
|
this.groupBox2.Size = new System.Drawing.Size(250, 225); |
|
|
|
|
|
|
|
this.groupBox2.TabIndex = 0; |
|
|
|
|
|
|
|
this.groupBox2.TabStop = false; |
|
|
|
|
|
|
|
this.groupBox2.Text = "Log"; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// chkAutoScroll |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.chkAutoScroll.AutoSize = true; |
|
|
|
|
|
|
|
this.chkAutoScroll.Checked = true; |
|
|
|
|
|
|
|
this.chkAutoScroll.CheckState = System.Windows.Forms.CheckState.Checked; |
|
|
|
|
|
|
|
this.chkAutoScroll.Location = new System.Drawing.Point(9, 203); |
|
|
|
|
|
|
|
this.chkAutoScroll.Name = "chkAutoScroll"; |
|
|
|
|
|
|
|
this.chkAutoScroll.Size = new System.Drawing.Size(84, 16); |
|
|
|
|
|
|
|
this.chkAutoScroll.TabIndex = 1; |
|
|
|
|
|
|
|
this.chkAutoScroll.Text = "Auto scroll"; |
|
|
|
|
|
|
|
this.chkAutoScroll.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// btnClear |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|
|
|
|
|
|
|
this.btnClear.Location = new System.Drawing.Point(162, 196); |
|
|
|
|
|
|
|
this.btnClear.Name = "btnClear"; |
|
|
|
|
|
|
|
this.btnClear.Size = new System.Drawing.Size(75, 23); |
|
|
|
|
|
|
|
this.btnClear.TabIndex = 3; |
|
|
|
|
|
|
|
this.btnClear.Text = "Clear log"; |
|
|
|
|
|
|
|
this.btnClear.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
this.btnClear.Click += new System.EventHandler(this.btnClear_Click); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// rtbLog |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.rtbLog.BackColor = System.Drawing.Color.Black; |
|
|
|
|
|
|
|
this.rtbLog.BorderStyle = System.Windows.Forms.BorderStyle.None; |
|
|
|
|
|
|
|
this.rtbLog.ForeColor = System.Drawing.Color.Lime; |
|
|
|
|
|
|
|
this.rtbLog.Location = new System.Drawing.Point(9, 21); |
|
|
|
|
|
|
|
this.rtbLog.Name = "rtbLog"; |
|
|
|
|
|
|
|
this.rtbLog.ReadOnly = true; |
|
|
|
|
|
|
|
this.rtbLog.Size = new System.Drawing.Size(228, 169); |
|
|
|
|
|
|
|
this.rtbLog.TabIndex = 0; |
|
|
|
|
|
|
|
this.rtbLog.Text = ""; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// tabControl1 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.tabControl1.Controls.Add(this.tabPage1); |
|
|
|
|
|
|
|
this.tabControl1.Controls.Add(this.tabPage2); |
|
|
|
|
|
|
|
this.tabControl1.Controls.Add(this.tabPage3); |
|
|
|
|
|
|
|
this.tabControl1.Controls.Add(this.tabPage4); |
|
|
|
|
|
|
|
this.tabControl1.Location = new System.Drawing.Point(268, 12); |
|
|
|
|
|
|
|
this.tabControl1.Name = "tabControl1"; |
|
|
|
|
|
|
|
this.tabControl1.SelectedIndex = 0; |
|
|
|
|
|
|
|
this.tabControl1.Size = new System.Drawing.Size(263, 362); |
|
|
|
|
|
|
|
this.tabControl1.TabIndex = 1; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// tabPage1 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.tabPage1.Controls.Add(this.lv0x); |
|
|
|
|
|
|
|
this.tabPage1.Location = new System.Drawing.Point(4, 22); |
|
|
|
|
|
|
|
this.tabPage1.Name = "tabPage1"; |
|
|
|
|
|
|
|
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); |
|
|
|
|
|
|
|
this.tabPage1.Size = new System.Drawing.Size(255, 336); |
|
|
|
|
|
|
|
this.tabPage1.TabIndex = 0; |
|
|
|
|
|
|
|
this.tabPage1.Text = "0x"; |
|
|
|
|
|
|
|
this.tabPage1.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// lv0x |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.lv0x.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { |
|
|
|
|
|
|
|
this.columnHeader1, |
|
|
|
|
|
|
|
this.columnHeader2}); |
|
|
|
|
|
|
|
this.lv0x.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
|
|
|
this.lv0x.FullRowSelect = true; |
|
|
|
|
|
|
|
this.lv0x.HideSelection = false; |
|
|
|
|
|
|
|
this.lv0x.Location = new System.Drawing.Point(3, 3); |
|
|
|
|
|
|
|
this.lv0x.MultiSelect = false; |
|
|
|
|
|
|
|
this.lv0x.Name = "lv0x"; |
|
|
|
|
|
|
|
this.lv0x.Size = new System.Drawing.Size(249, 330); |
|
|
|
|
|
|
|
this.lv0x.TabIndex = 0; |
|
|
|
|
|
|
|
this.lv0x.UseCompatibleStateImageBehavior = false; |
|
|
|
|
|
|
|
this.lv0x.View = System.Windows.Forms.View.Details; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader1 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader1.Text = "Address"; |
|
|
|
|
|
|
|
this.columnHeader1.Width = 109; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader2 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader2.Text = "Value"; |
|
|
|
|
|
|
|
this.columnHeader2.Width = 133; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// tabPage2 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.tabPage2.Controls.Add(this.lv1x); |
|
|
|
|
|
|
|
this.tabPage2.Location = new System.Drawing.Point(4, 22); |
|
|
|
|
|
|
|
this.tabPage2.Name = "tabPage2"; |
|
|
|
|
|
|
|
this.tabPage2.Padding = new System.Windows.Forms.Padding(3); |
|
|
|
|
|
|
|
this.tabPage2.Size = new System.Drawing.Size(255, 336); |
|
|
|
|
|
|
|
this.tabPage2.TabIndex = 1; |
|
|
|
|
|
|
|
this.tabPage2.Text = "1x"; |
|
|
|
|
|
|
|
this.tabPage2.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// lv1x |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.lv1x.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { |
|
|
|
|
|
|
|
this.columnHeader3, |
|
|
|
|
|
|
|
this.columnHeader4}); |
|
|
|
|
|
|
|
this.lv1x.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
|
|
|
this.lv1x.FullRowSelect = true; |
|
|
|
|
|
|
|
this.lv1x.HideSelection = false; |
|
|
|
|
|
|
|
this.lv1x.Location = new System.Drawing.Point(3, 3); |
|
|
|
|
|
|
|
this.lv1x.MultiSelect = false; |
|
|
|
|
|
|
|
this.lv1x.Name = "lv1x"; |
|
|
|
|
|
|
|
this.lv1x.Size = new System.Drawing.Size(249, 330); |
|
|
|
|
|
|
|
this.lv1x.TabIndex = 1; |
|
|
|
|
|
|
|
this.lv1x.UseCompatibleStateImageBehavior = false; |
|
|
|
|
|
|
|
this.lv1x.View = System.Windows.Forms.View.Details; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader3 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader3.Text = "Address"; |
|
|
|
|
|
|
|
this.columnHeader3.Width = 109; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader4 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader4.Text = "Value"; |
|
|
|
|
|
|
|
this.columnHeader4.Width = 133; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// tabPage3 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.tabPage3.Controls.Add(this.lv3x); |
|
|
|
|
|
|
|
this.tabPage3.Location = new System.Drawing.Point(4, 22); |
|
|
|
|
|
|
|
this.tabPage3.Name = "tabPage3"; |
|
|
|
|
|
|
|
this.tabPage3.Size = new System.Drawing.Size(255, 336); |
|
|
|
|
|
|
|
this.tabPage3.TabIndex = 2; |
|
|
|
|
|
|
|
this.tabPage3.Text = "3x"; |
|
|
|
|
|
|
|
this.tabPage3.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// lv3x |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.lv3x.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { |
|
|
|
|
|
|
|
this.columnHeader5, |
|
|
|
|
|
|
|
this.columnHeader6}); |
|
|
|
|
|
|
|
this.lv3x.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
|
|
|
this.lv3x.FullRowSelect = true; |
|
|
|
|
|
|
|
this.lv3x.HideSelection = false; |
|
|
|
|
|
|
|
this.lv3x.Location = new System.Drawing.Point(0, 0); |
|
|
|
|
|
|
|
this.lv3x.MultiSelect = false; |
|
|
|
|
|
|
|
this.lv3x.Name = "lv3x"; |
|
|
|
|
|
|
|
this.lv3x.Size = new System.Drawing.Size(255, 336); |
|
|
|
|
|
|
|
this.lv3x.TabIndex = 1; |
|
|
|
|
|
|
|
this.lv3x.UseCompatibleStateImageBehavior = false; |
|
|
|
|
|
|
|
this.lv3x.View = System.Windows.Forms.View.Details; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader5 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader5.Text = "Address"; |
|
|
|
|
|
|
|
this.columnHeader5.Width = 109; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader6 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader6.Text = "Value"; |
|
|
|
|
|
|
|
this.columnHeader6.Width = 133; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// tabPage4 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.tabPage4.Controls.Add(this.lv4x); |
|
|
|
|
|
|
|
this.tabPage4.Location = new System.Drawing.Point(4, 22); |
|
|
|
|
|
|
|
this.tabPage4.Name = "tabPage4"; |
|
|
|
|
|
|
|
this.tabPage4.Size = new System.Drawing.Size(255, 336); |
|
|
|
|
|
|
|
this.tabPage4.TabIndex = 3; |
|
|
|
|
|
|
|
this.tabPage4.Text = "4x"; |
|
|
|
|
|
|
|
this.tabPage4.UseVisualStyleBackColor = true; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// lv4x |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.lv4x.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { |
|
|
|
|
|
|
|
this.columnHeader7, |
|
|
|
|
|
|
|
this.columnHeader8}); |
|
|
|
|
|
|
|
this.lv4x.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
|
|
|
|
this.lv4x.FullRowSelect = true; |
|
|
|
|
|
|
|
this.lv4x.HideSelection = false; |
|
|
|
|
|
|
|
this.lv4x.Location = new System.Drawing.Point(0, 0); |
|
|
|
|
|
|
|
this.lv4x.MultiSelect = false; |
|
|
|
|
|
|
|
this.lv4x.Name = "lv4x"; |
|
|
|
|
|
|
|
this.lv4x.Size = new System.Drawing.Size(255, 336); |
|
|
|
|
|
|
|
this.lv4x.TabIndex = 1; |
|
|
|
|
|
|
|
this.lv4x.UseCompatibleStateImageBehavior = false; |
|
|
|
|
|
|
|
this.lv4x.View = System.Windows.Forms.View.Details; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader7 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader7.Text = "Address"; |
|
|
|
|
|
|
|
this.columnHeader7.Width = 109; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// columnHeader8 |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
this.columnHeader8.Text = "Value"; |
|
|
|
|
|
|
|
this.columnHeader8.Width = 133; |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// MainForm |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
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(536, 386); |
|
|
|
|
|
|
|
this.Controls.Add(this.tabControl1); |
|
|
|
|
|
|
|
this.Controls.Add(this.groupBox2); |
|
|
|
|
|
|
|
this.Controls.Add(this.groupBox1); |
|
|
|
|
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
|
|
|
|
|
|
|
this.Name = "MainForm"; |
|
|
|
|
|
|
|
this.Text = "Modbus Slave"; |
|
|
|
|
|
|
|
this.groupBox1.ResumeLayout(false); |
|
|
|
|
|
|
|
this.groupBox1.PerformLayout(); |
|
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudAddress)).EndInit(); |
|
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).EndInit(); |
|
|
|
|
|
|
|
this.groupBox2.ResumeLayout(false); |
|
|
|
|
|
|
|
this.groupBox2.PerformLayout(); |
|
|
|
|
|
|
|
this.tabControl1.ResumeLayout(false); |
|
|
|
|
|
|
|
this.tabPage1.ResumeLayout(false); |
|
|
|
|
|
|
|
this.tabPage2.ResumeLayout(false); |
|
|
|
|
|
|
|
this.tabPage3.ResumeLayout(false); |
|
|
|
|
|
|
|
this.tabPage4.ResumeLayout(false); |
|
|
|
|
|
|
|
this.ResumeLayout(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private System.Windows.Forms.GroupBox groupBox1; |
|
|
|
|
|
|
|
private System.Windows.Forms.Button btnStop; |
|
|
|
|
|
|
|
private System.Windows.Forms.Button btnRun; |
|
|
|
|
|
|
|
private System.Windows.Forms.NumericUpDown nudAddress; |
|
|
|
|
|
|
|
private System.Windows.Forms.Label label3; |
|
|
|
|
|
|
|
private System.Windows.Forms.NumericUpDown nudPort; |
|
|
|
|
|
|
|
private System.Windows.Forms.Label label2; |
|
|
|
|
|
|
|
private System.Windows.Forms.TextBox tbStatus; |
|
|
|
|
|
|
|
private System.Windows.Forms.Label label1; |
|
|
|
|
|
|
|
private System.Windows.Forms.GroupBox groupBox2; |
|
|
|
|
|
|
|
private System.Windows.Forms.CheckBox chkAutoScroll; |
|
|
|
|
|
|
|
private System.Windows.Forms.Button btnClear; |
|
|
|
|
|
|
|
private System.Windows.Forms.RichTextBox rtbLog; |
|
|
|
|
|
|
|
private System.Windows.Forms.TabControl tabControl1; |
|
|
|
|
|
|
|
private System.Windows.Forms.TabPage tabPage1; |
|
|
|
|
|
|
|
private System.Windows.Forms.ListView lv0x; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader1; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader2; |
|
|
|
|
|
|
|
private System.Windows.Forms.TabPage tabPage2; |
|
|
|
|
|
|
|
private System.Windows.Forms.ListView lv1x; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader3; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader4; |
|
|
|
|
|
|
|
private System.Windows.Forms.TabPage tabPage3; |
|
|
|
|
|
|
|
private System.Windows.Forms.ListView lv3x; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader5; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader6; |
|
|
|
|
|
|
|
private System.Windows.Forms.TabPage tabPage4; |
|
|
|
|
|
|
|
private System.Windows.Forms.ListView lv4x; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader7; |
|
|
|
|
|
|
|
private System.Windows.Forms.ColumnHeader columnHeader8; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|