|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
|
|
|
|
|
namespace CommClient |
|
|
|
|
namespace MasterClient |
|
|
|
|
{ |
|
|
|
|
partial class MainForm |
|
|
|
|
{ |
|
|
|
@ -29,11 +29,14 @@ namespace CommClient |
|
|
|
|
/// </summary> |
|
|
|
|
private void InitializeComponent() |
|
|
|
|
{ |
|
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); |
|
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
|
|
|
|
this.btnDisconnect = new System.Windows.Forms.Button(); |
|
|
|
|
this.tbIP = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.btnConnect = new System.Windows.Forms.Button(); |
|
|
|
|
this.nudIdentifier = new System.Windows.Forms.NumericUpDown(); |
|
|
|
|
this.nudPort = new System.Windows.Forms.NumericUpDown(); |
|
|
|
|
this.label7 = new System.Windows.Forms.Label(); |
|
|
|
|
this.label3 = new System.Windows.Forms.Label(); |
|
|
|
|
this.label2 = new System.Windows.Forms.Label(); |
|
|
|
|
this.tbStatus = new System.Windows.Forms.TextBox(); |
|
|
|
@ -52,19 +55,17 @@ namespace CommClient |
|
|
|
|
this.label6 = new System.Windows.Forms.Label(); |
|
|
|
|
this.tbWriteName = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.label5 = new System.Windows.Forms.Label(); |
|
|
|
|
this.groupBox4 = new System.Windows.Forms.GroupBox(); |
|
|
|
|
this.gbMode = new System.Windows.Forms.GroupBox(); |
|
|
|
|
this.chkSdk = new System.Windows.Forms.RadioButton(); |
|
|
|
|
this.chkOPCUA = new System.Windows.Forms.RadioButton(); |
|
|
|
|
this.chkModbus = new System.Windows.Forms.RadioButton(); |
|
|
|
|
this.label7 = new System.Windows.Forms.Label(); |
|
|
|
|
this.nudAddress = new System.Windows.Forms.NumericUpDown(); |
|
|
|
|
this.groupBox1.SuspendLayout(); |
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudIdentifier)).BeginInit(); |
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).BeginInit(); |
|
|
|
|
this.groupBox5.SuspendLayout(); |
|
|
|
|
this.groupBox2.SuspendLayout(); |
|
|
|
|
this.groupBox3.SuspendLayout(); |
|
|
|
|
this.groupBox4.SuspendLayout(); |
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudAddress)).BeginInit(); |
|
|
|
|
this.gbMode.SuspendLayout(); |
|
|
|
|
this.SuspendLayout(); |
|
|
|
|
// |
|
|
|
|
// groupBox1 |
|
|
|
@ -72,7 +73,7 @@ namespace CommClient |
|
|
|
|
this.groupBox1.Controls.Add(this.btnDisconnect); |
|
|
|
|
this.groupBox1.Controls.Add(this.tbIP); |
|
|
|
|
this.groupBox1.Controls.Add(this.btnConnect); |
|
|
|
|
this.groupBox1.Controls.Add(this.nudAddress); |
|
|
|
|
this.groupBox1.Controls.Add(this.nudIdentifier); |
|
|
|
|
this.groupBox1.Controls.Add(this.nudPort); |
|
|
|
|
this.groupBox1.Controls.Add(this.label7); |
|
|
|
|
this.groupBox1.Controls.Add(this.label3); |
|
|
|
@ -120,6 +121,25 @@ namespace CommClient |
|
|
|
|
this.btnConnect.Text = "Connect"; |
|
|
|
|
this.btnConnect.UseVisualStyleBackColor = true; |
|
|
|
|
this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click); |
|
|
|
|
// |
|
|
|
|
// nudIdentifier |
|
|
|
|
// |
|
|
|
|
this.nudIdentifier.Location = new System.Drawing.Point(78, 123); |
|
|
|
|
this.nudIdentifier.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
|
this.nudIdentifier.Maximum = new decimal(new int[] { |
|
|
|
|
65535, |
|
|
|
|
0, |
|
|
|
|
0, |
|
|
|
|
0}); |
|
|
|
|
this.nudIdentifier.Name = "nudIdentifier"; |
|
|
|
|
this.nudIdentifier.Size = new System.Drawing.Size(156, 23); |
|
|
|
|
this.nudIdentifier.TabIndex = 9; |
|
|
|
|
this.nudIdentifier.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
|
|
|
|
this.nudIdentifier.Value = new decimal(new int[] { |
|
|
|
|
1, |
|
|
|
|
0, |
|
|
|
|
0, |
|
|
|
|
0}); |
|
|
|
|
// |
|
|
|
|
// nudPort |
|
|
|
|
// |
|
|
|
@ -139,6 +159,15 @@ namespace CommClient |
|
|
|
|
0, |
|
|
|
|
0, |
|
|
|
|
0}); |
|
|
|
|
// |
|
|
|
|
// label7 |
|
|
|
|
// |
|
|
|
|
this.label7.AutoSize = true; |
|
|
|
|
this.label7.Location = new System.Drawing.Point(4, 129); |
|
|
|
|
this.label7.Name = "label7"; |
|
|
|
|
this.label7.Size = new System.Drawing.Size(54, 15); |
|
|
|
|
this.label7.TabIndex = 5; |
|
|
|
|
this.label7.Text = "Identifier"; |
|
|
|
|
// |
|
|
|
|
// label3 |
|
|
|
|
// |
|
|
|
@ -340,19 +369,19 @@ namespace CommClient |
|
|
|
|
this.label5.TabIndex = 6; |
|
|
|
|
this.label5.Text = "Tag name/Id"; |
|
|
|
|
// |
|
|
|
|
// groupBox4 |
|
|
|
|
// gbMode |
|
|
|
|
// |
|
|
|
|
this.groupBox4.Controls.Add(this.chkSdk); |
|
|
|
|
this.groupBox4.Controls.Add(this.chkOPCUA); |
|
|
|
|
this.groupBox4.Controls.Add(this.chkModbus); |
|
|
|
|
this.groupBox4.Location = new System.Drawing.Point(13, 453); |
|
|
|
|
this.groupBox4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
|
this.groupBox4.Name = "groupBox4"; |
|
|
|
|
this.groupBox4.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
|
this.groupBox4.Size = new System.Drawing.Size(240, 64); |
|
|
|
|
this.groupBox4.TabIndex = 0; |
|
|
|
|
this.groupBox4.TabStop = false; |
|
|
|
|
this.groupBox4.Text = "Mode"; |
|
|
|
|
this.gbMode.Controls.Add(this.chkSdk); |
|
|
|
|
this.gbMode.Controls.Add(this.chkOPCUA); |
|
|
|
|
this.gbMode.Controls.Add(this.chkModbus); |
|
|
|
|
this.gbMode.Location = new System.Drawing.Point(13, 453); |
|
|
|
|
this.gbMode.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
|
this.gbMode.Name = "gbMode"; |
|
|
|
|
this.gbMode.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
|
this.gbMode.Size = new System.Drawing.Size(240, 64); |
|
|
|
|
this.gbMode.TabIndex = 0; |
|
|
|
|
this.gbMode.TabStop = false; |
|
|
|
|
this.gbMode.Text = "Mode"; |
|
|
|
|
// |
|
|
|
|
// chkSdk |
|
|
|
|
// |
|
|
|
@ -388,34 +417,6 @@ namespace CommClient |
|
|
|
|
this.chkModbus.TabStop = true; |
|
|
|
|
this.chkModbus.Text = "Modbus"; |
|
|
|
|
this.chkModbus.UseVisualStyleBackColor = true; |
|
|
|
|
// |
|
|
|
|
// label7 |
|
|
|
|
// |
|
|
|
|
this.label7.AutoSize = true; |
|
|
|
|
this.label7.Location = new System.Drawing.Point(4, 129); |
|
|
|
|
this.label7.Name = "label7"; |
|
|
|
|
this.label7.Size = new System.Drawing.Size(49, 15); |
|
|
|
|
this.label7.TabIndex = 5; |
|
|
|
|
this.label7.Text = "Address"; |
|
|
|
|
// |
|
|
|
|
// nudAddress |
|
|
|
|
// |
|
|
|
|
this.nudAddress.Location = new System.Drawing.Point(78, 123); |
|
|
|
|
this.nudAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
|
this.nudAddress.Maximum = new decimal(new int[] { |
|
|
|
|
65535, |
|
|
|
|
0, |
|
|
|
|
0, |
|
|
|
|
0}); |
|
|
|
|
this.nudAddress.Name = "nudAddress"; |
|
|
|
|
this.nudAddress.Size = new System.Drawing.Size(156, 23); |
|
|
|
|
this.nudAddress.TabIndex = 9; |
|
|
|
|
this.nudAddress.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
|
|
|
|
this.nudAddress.Value = new decimal(new int[] { |
|
|
|
|
1, |
|
|
|
|
0, |
|
|
|
|
0, |
|
|
|
|
0}); |
|
|
|
|
// |
|
|
|
|
// MainForm |
|
|
|
|
// |
|
|
|
@ -424,17 +425,19 @@ namespace CommClient |
|
|
|
|
this.BackColor = System.Drawing.Color.White; |
|
|
|
|
this.ClientSize = new System.Drawing.Size(690, 528); |
|
|
|
|
this.Controls.Add(this.groupBox5); |
|
|
|
|
this.Controls.Add(this.groupBox4); |
|
|
|
|
this.Controls.Add(this.gbMode); |
|
|
|
|
this.Controls.Add(this.groupBox3); |
|
|
|
|
this.Controls.Add(this.groupBox2); |
|
|
|
|
this.Controls.Add(this.groupBox1); |
|
|
|
|
this.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |
|
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
|
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|
|
|
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
|
this.Name = "MainForm"; |
|
|
|
|
this.Text = "Comm Client"; |
|
|
|
|
this.groupBox1.ResumeLayout(false); |
|
|
|
|
this.groupBox1.PerformLayout(); |
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudIdentifier)).EndInit(); |
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).EndInit(); |
|
|
|
|
this.groupBox5.ResumeLayout(false); |
|
|
|
|
this.groupBox5.PerformLayout(); |
|
|
|
@ -442,9 +445,8 @@ namespace CommClient |
|
|
|
|
this.groupBox2.PerformLayout(); |
|
|
|
|
this.groupBox3.ResumeLayout(false); |
|
|
|
|
this.groupBox3.PerformLayout(); |
|
|
|
|
this.groupBox4.ResumeLayout(false); |
|
|
|
|
this.groupBox4.PerformLayout(); |
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudAddress)).EndInit(); |
|
|
|
|
this.gbMode.ResumeLayout(false); |
|
|
|
|
this.gbMode.PerformLayout(); |
|
|
|
|
this.ResumeLayout(false); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -461,7 +463,7 @@ namespace CommClient |
|
|
|
|
private System.Windows.Forms.Label label1; |
|
|
|
|
private System.Windows.Forms.GroupBox groupBox2; |
|
|
|
|
private System.Windows.Forms.GroupBox groupBox3; |
|
|
|
|
private System.Windows.Forms.GroupBox groupBox4; |
|
|
|
|
private System.Windows.Forms.GroupBox gbMode; |
|
|
|
|
private System.Windows.Forms.Button btnRead; |
|
|
|
|
private System.Windows.Forms.TextBox tbReadName; |
|
|
|
|
private System.Windows.Forms.Label label4; |
|
|
|
@ -478,7 +480,7 @@ namespace CommClient |
|
|
|
|
private System.Windows.Forms.Button btnClear; |
|
|
|
|
private System.Windows.Forms.TextBox tbIP; |
|
|
|
|
private System.Windows.Forms.Label label3; |
|
|
|
|
private System.Windows.Forms.NumericUpDown nudAddress; |
|
|
|
|
private System.Windows.Forms.NumericUpDown nudIdentifier; |
|
|
|
|
private System.Windows.Forms.Label label7; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|