|
@@ -34,22 +34,26 @@
|
|
|
this.Port = new System.Windows.Forms.TextBox();
|
|
|
this.OpenServer = new System.Windows.Forms.Button();
|
|
|
this.CloseServer = new System.Windows.Forms.Button();
|
|
|
+ this.SelectIP = new System.Windows.Forms.ComboBox();
|
|
|
+ this.SEND = new System.Windows.Forms.Button();
|
|
|
+ this.IPTEXT = new System.Windows.Forms.Label();
|
|
|
+ this.SENDMESSAGE = new UAS_PLCDataReader.RichTextAutoBottom();
|
|
|
this.Result = new UAS_PLCDataReader.RichTextAutoBottom();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// IP
|
|
|
//
|
|
|
this.IP.Enabled = false;
|
|
|
- this.IP.Location = new System.Drawing.Point(111, 328);
|
|
|
+ this.IP.Location = new System.Drawing.Point(103, 325);
|
|
|
this.IP.Name = "IP";
|
|
|
- this.IP.Size = new System.Drawing.Size(133, 21);
|
|
|
+ this.IP.Size = new System.Drawing.Size(103, 21);
|
|
|
this.IP.TabIndex = 0;
|
|
|
//
|
|
|
// IP_label
|
|
|
//
|
|
|
this.IP_label.AutoSize = true;
|
|
|
this.IP_label.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
- this.IP_label.Location = new System.Drawing.Point(12, 328);
|
|
|
+ this.IP_label.Location = new System.Drawing.Point(12, 325);
|
|
|
this.IP_label.Name = "IP_label";
|
|
|
this.IP_label.Size = new System.Drawing.Size(85, 21);
|
|
|
this.IP_label.TabIndex = 1;
|
|
@@ -59,7 +63,7 @@
|
|
|
//
|
|
|
this.Port_label.AutoSize = true;
|
|
|
this.Port_label.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
- this.Port_label.Location = new System.Drawing.Point(255, 328);
|
|
|
+ this.Port_label.Location = new System.Drawing.Point(212, 325);
|
|
|
this.Port_label.Name = "Port_label";
|
|
|
this.Port_label.Size = new System.Drawing.Size(42, 21);
|
|
|
this.Port_label.TabIndex = 3;
|
|
@@ -67,14 +71,14 @@
|
|
|
//
|
|
|
// Port
|
|
|
//
|
|
|
- this.Port.Location = new System.Drawing.Point(314, 328);
|
|
|
+ this.Port.Location = new System.Drawing.Point(260, 325);
|
|
|
this.Port.Name = "Port";
|
|
|
- this.Port.Size = new System.Drawing.Size(133, 21);
|
|
|
+ this.Port.Size = new System.Drawing.Size(105, 21);
|
|
|
this.Port.TabIndex = 2;
|
|
|
//
|
|
|
// OpenServer
|
|
|
//
|
|
|
- this.OpenServer.Location = new System.Drawing.Point(496, 328);
|
|
|
+ this.OpenServer.Location = new System.Drawing.Point(371, 323);
|
|
|
this.OpenServer.Name = "OpenServer";
|
|
|
this.OpenServer.Size = new System.Drawing.Size(65, 23);
|
|
|
this.OpenServer.TabIndex = 4;
|
|
@@ -84,7 +88,7 @@
|
|
|
//
|
|
|
// CloseServer
|
|
|
//
|
|
|
- this.CloseServer.Location = new System.Drawing.Point(597, 328);
|
|
|
+ this.CloseServer.Location = new System.Drawing.Point(442, 323);
|
|
|
this.CloseServer.Name = "CloseServer";
|
|
|
this.CloseServer.Size = new System.Drawing.Size(65, 23);
|
|
|
this.CloseServer.TabIndex = 5;
|
|
@@ -92,11 +96,45 @@
|
|
|
this.CloseServer.UseVisualStyleBackColor = true;
|
|
|
this.CloseServer.Click += new System.EventHandler(this.CloseServer_Click);
|
|
|
//
|
|
|
+ // SelectIP
|
|
|
+ //
|
|
|
+ this.SelectIP.FormattingEnabled = true;
|
|
|
+ this.SelectIP.Location = new System.Drawing.Point(531, 64);
|
|
|
+ this.SelectIP.Name = "SelectIP";
|
|
|
+ this.SelectIP.Size = new System.Drawing.Size(159, 20);
|
|
|
+ this.SelectIP.TabIndex = 7;
|
|
|
+ //
|
|
|
+ // SEND
|
|
|
+ //
|
|
|
+ this.SEND.Location = new System.Drawing.Point(573, 323);
|
|
|
+ this.SEND.Name = "SEND";
|
|
|
+ this.SEND.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.SEND.TabIndex = 9;
|
|
|
+ this.SEND.Text = "SEND";
|
|
|
+ this.SEND.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
+ // IPTEXT
|
|
|
+ //
|
|
|
+ this.IPTEXT.AutoSize = true;
|
|
|
+ this.IPTEXT.Location = new System.Drawing.Point(531, 24);
|
|
|
+ this.IPTEXT.Name = "IPTEXT";
|
|
|
+ this.IPTEXT.Size = new System.Drawing.Size(53, 12);
|
|
|
+ this.IPTEXT.TabIndex = 10;
|
|
|
+ this.IPTEXT.Text = "已连接IP";
|
|
|
+ //
|
|
|
+ // SENDMESSAGE
|
|
|
+ //
|
|
|
+ this.SENDMESSAGE.Location = new System.Drawing.Point(531, 120);
|
|
|
+ this.SENDMESSAGE.Name = "SENDMESSAGE";
|
|
|
+ this.SENDMESSAGE.Size = new System.Drawing.Size(159, 202);
|
|
|
+ this.SENDMESSAGE.TabIndex = 8;
|
|
|
+ this.SENDMESSAGE.Text = "";
|
|
|
+ //
|
|
|
// Result
|
|
|
//
|
|
|
this.Result.Location = new System.Drawing.Point(12, 12);
|
|
|
this.Result.Name = "Result";
|
|
|
- this.Result.Size = new System.Drawing.Size(678, 310);
|
|
|
+ this.Result.Size = new System.Drawing.Size(486, 310);
|
|
|
this.Result.TabIndex = 6;
|
|
|
this.Result.Text = "";
|
|
|
//
|
|
@@ -105,6 +143,10 @@
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.ClientSize = new System.Drawing.Size(702, 358);
|
|
|
+ this.Controls.Add(this.IPTEXT);
|
|
|
+ this.Controls.Add(this.SEND);
|
|
|
+ this.Controls.Add(this.SENDMESSAGE);
|
|
|
+ this.Controls.Add(this.SelectIP);
|
|
|
this.Controls.Add(this.Result);
|
|
|
this.Controls.Add(this.CloseServer);
|
|
|
this.Controls.Add(this.OpenServer);
|
|
@@ -117,7 +159,7 @@
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
this.Text = "PLCDataReader";
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
- this.ResumeLayout(false);
|
|
|
+ this.ResumeLayout(true);
|
|
|
this.PerformLayout();
|
|
|
|
|
|
}
|
|
@@ -131,6 +173,10 @@
|
|
|
private System.Windows.Forms.Button OpenServer;
|
|
|
private System.Windows.Forms.Button CloseServer;
|
|
|
private RichTextAutoBottom Result;
|
|
|
+ private System.Windows.Forms.ComboBox SelectIP;
|
|
|
+ private RichTextAutoBottom SENDMESSAGE;
|
|
|
+ private System.Windows.Forms.Button SEND;
|
|
|
+ private System.Windows.Forms.Label IPTEXT;
|
|
|
}
|
|
|
}
|
|
|
|