286 lines
12 KiB
C#
286 lines
12 KiB
C#
|
|
namespace SimpleServer
|
|||
|
|
{
|
|||
|
|
partial class ServerForm
|
|||
|
|
{
|
|||
|
|
/// <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.btnClear = new System.Windows.Forms.Button();
|
|||
|
|
this.btnSend = new System.Windows.Forms.Button();
|
|||
|
|
this.tbIP = new System.Windows.Forms.TextBox();
|
|||
|
|
this.tbPort = new System.Windows.Forms.TextBox();
|
|||
|
|
this.lblIP = new System.Windows.Forms.Label();
|
|||
|
|
this.lblPort = new System.Windows.Forms.Label();
|
|||
|
|
this.btnStart = new System.Windows.Forms.Button();
|
|||
|
|
this.btnClose = new System.Windows.Forms.Button();
|
|||
|
|
this.btnDisconnect = new System.Windows.Forms.Button();
|
|||
|
|
this.txtLog = new System.Windows.Forms.TextBox();
|
|||
|
|
this.txtRecv = new System.Windows.Forms.RichTextBox();
|
|||
|
|
this.txtSend = new System.Windows.Forms.RichTextBox();
|
|||
|
|
this.label1 = new System.Windows.Forms.Label();
|
|||
|
|
this.tbIP_10 = new System.Windows.Forms.TextBox();
|
|||
|
|
this.label2 = new System.Windows.Forms.Label();
|
|||
|
|
this.tbPort_10 = new System.Windows.Forms.TextBox();
|
|||
|
|
this.btnStart_10 = new System.Windows.Forms.Button();
|
|||
|
|
this.btnClose_10 = new System.Windows.Forms.Button();
|
|||
|
|
this.btnDisconnect_10 = new System.Windows.Forms.Button();
|
|||
|
|
this.SuspendLayout();
|
|||
|
|
//
|
|||
|
|
// btnClear
|
|||
|
|
//
|
|||
|
|
this.btnClear.Location = new System.Drawing.Point(398, 205);
|
|||
|
|
this.btnClear.Name = "btnClear";
|
|||
|
|
this.btnClear.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.btnClear.TabIndex = 1;
|
|||
|
|
this.btnClear.Text = "清空";
|
|||
|
|
this.btnClear.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
|
|||
|
|
//
|
|||
|
|
// btnSend
|
|||
|
|
//
|
|||
|
|
this.btnSend.Location = new System.Drawing.Point(398, 423);
|
|||
|
|
this.btnSend.Name = "btnSend";
|
|||
|
|
this.btnSend.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.btnSend.TabIndex = 1;
|
|||
|
|
this.btnSend.Text = "发送";
|
|||
|
|
this.btnSend.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
|
|||
|
|
//
|
|||
|
|
// tbIP
|
|||
|
|
//
|
|||
|
|
this.tbIP.Location = new System.Drawing.Point(36, 461);
|
|||
|
|
this.tbIP.Name = "tbIP";
|
|||
|
|
this.tbIP.Size = new System.Drawing.Size(75, 21);
|
|||
|
|
this.tbIP.TabIndex = 2;
|
|||
|
|
this.tbIP.Text = "172.16.226.31";
|
|||
|
|
//
|
|||
|
|
// tbPort
|
|||
|
|
//
|
|||
|
|
this.tbPort.Location = new System.Drawing.Point(167, 461);
|
|||
|
|
this.tbPort.Name = "tbPort";
|
|||
|
|
this.tbPort.Size = new System.Drawing.Size(38, 21);
|
|||
|
|
this.tbPort.TabIndex = 2;
|
|||
|
|
this.tbPort.Text = "2009";
|
|||
|
|
//
|
|||
|
|
// lblIP
|
|||
|
|
//
|
|||
|
|
this.lblIP.Location = new System.Drawing.Point(7, 464);
|
|||
|
|
this.lblIP.Name = "lblIP";
|
|||
|
|
this.lblIP.Size = new System.Drawing.Size(24, 23);
|
|||
|
|
this.lblIP.TabIndex = 3;
|
|||
|
|
this.lblIP.Text = "IP";
|
|||
|
|
//
|
|||
|
|
// lblPort
|
|||
|
|
//
|
|||
|
|
this.lblPort.Location = new System.Drawing.Point(130, 464);
|
|||
|
|
this.lblPort.Name = "lblPort";
|
|||
|
|
this.lblPort.Size = new System.Drawing.Size(31, 23);
|
|||
|
|
this.lblPort.TabIndex = 3;
|
|||
|
|
this.lblPort.Text = "Port";
|
|||
|
|
//
|
|||
|
|
// btnStart
|
|||
|
|
//
|
|||
|
|
this.btnStart.Location = new System.Drawing.Point(223, 459);
|
|||
|
|
this.btnStart.Name = "btnStart";
|
|||
|
|
this.btnStart.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.btnStart.TabIndex = 1;
|
|||
|
|
this.btnStart.Text = "启动服务器";
|
|||
|
|
this.btnStart.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
|
|||
|
|
//
|
|||
|
|
// btnClose
|
|||
|
|
//
|
|||
|
|
this.btnClose.Location = new System.Drawing.Point(310, 459);
|
|||
|
|
this.btnClose.Name = "btnClose";
|
|||
|
|
this.btnClose.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.btnClose.TabIndex = 1;
|
|||
|
|
this.btnClose.Text = "关闭服务器";
|
|||
|
|
this.btnClose.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
|||
|
|
//
|
|||
|
|
// btnDisconnect
|
|||
|
|
//
|
|||
|
|
this.btnDisconnect.Location = new System.Drawing.Point(398, 459);
|
|||
|
|
this.btnDisconnect.Name = "btnDisconnect";
|
|||
|
|
this.btnDisconnect.Size = new System.Drawing.Size(76, 23);
|
|||
|
|
this.btnDisconnect.TabIndex = 4;
|
|||
|
|
this.btnDisconnect.Text = "关闭连接";
|
|||
|
|
this.btnDisconnect.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnDisconnect.Click += new System.EventHandler(this.btnDisconnect_Click);
|
|||
|
|
//
|
|||
|
|
// txtLog
|
|||
|
|
//
|
|||
|
|
this.txtLog.BackColor = System.Drawing.SystemColors.Window;
|
|||
|
|
this.txtLog.Location = new System.Drawing.Point(479, 8);
|
|||
|
|
this.txtLog.Multiline = true;
|
|||
|
|
this.txtLog.Name = "txtLog";
|
|||
|
|
this.txtLog.ReadOnly = true;
|
|||
|
|
this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
|||
|
|
this.txtLog.Size = new System.Drawing.Size(293, 510);
|
|||
|
|
this.txtLog.TabIndex = 0;
|
|||
|
|
//
|
|||
|
|
// txtRecv
|
|||
|
|
//
|
|||
|
|
this.txtRecv.BackColor = System.Drawing.SystemColors.Window;
|
|||
|
|
this.txtRecv.Location = new System.Drawing.Point(9, 8);
|
|||
|
|
this.txtRecv.Name = "txtRecv";
|
|||
|
|
this.txtRecv.ReadOnly = true;
|
|||
|
|
this.txtRecv.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
|
|||
|
|
this.txtRecv.Size = new System.Drawing.Size(464, 191);
|
|||
|
|
this.txtRecv.TabIndex = 5;
|
|||
|
|
this.txtRecv.Text = "";
|
|||
|
|
//
|
|||
|
|
// txtSend
|
|||
|
|
//
|
|||
|
|
this.txtSend.Location = new System.Drawing.Point(9, 240);
|
|||
|
|
this.txtSend.Name = "txtSend";
|
|||
|
|
this.txtSend.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
|
|||
|
|
this.txtSend.Size = new System.Drawing.Size(464, 177);
|
|||
|
|
this.txtSend.TabIndex = 6;
|
|||
|
|
this.txtSend.Text = "";
|
|||
|
|
//
|
|||
|
|
// label1
|
|||
|
|
//
|
|||
|
|
this.label1.Location = new System.Drawing.Point(7, 500);
|
|||
|
|
this.label1.Name = "label1";
|
|||
|
|
this.label1.Size = new System.Drawing.Size(24, 23);
|
|||
|
|
this.label1.TabIndex = 7;
|
|||
|
|
this.label1.Text = "IP";
|
|||
|
|
//
|
|||
|
|
// tbIP_10
|
|||
|
|
//
|
|||
|
|
this.tbIP_10.Location = new System.Drawing.Point(36, 497);
|
|||
|
|
this.tbIP_10.Name = "tbIP_10";
|
|||
|
|
this.tbIP_10.Size = new System.Drawing.Size(75, 21);
|
|||
|
|
this.tbIP_10.TabIndex = 8;
|
|||
|
|
this.tbIP_10.Text = "172.16.226.31";
|
|||
|
|
//
|
|||
|
|
// label2
|
|||
|
|
//
|
|||
|
|
this.label2.Location = new System.Drawing.Point(130, 500);
|
|||
|
|
this.label2.Name = "label2";
|
|||
|
|
this.label2.Size = new System.Drawing.Size(31, 23);
|
|||
|
|
this.label2.TabIndex = 9;
|
|||
|
|
this.label2.Text = "Port";
|
|||
|
|
//
|
|||
|
|
// tbPort_10
|
|||
|
|
//
|
|||
|
|
this.tbPort_10.Location = new System.Drawing.Point(167, 497);
|
|||
|
|
this.tbPort_10.Name = "tbPort_10";
|
|||
|
|
this.tbPort_10.Size = new System.Drawing.Size(38, 21);
|
|||
|
|
this.tbPort_10.TabIndex = 10;
|
|||
|
|
this.tbPort_10.Text = "2010";
|
|||
|
|
//
|
|||
|
|
// btnStart_10
|
|||
|
|
//
|
|||
|
|
this.btnStart_10.Location = new System.Drawing.Point(223, 495);
|
|||
|
|
this.btnStart_10.Name = "btnStart_10";
|
|||
|
|
this.btnStart_10.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.btnStart_10.TabIndex = 11;
|
|||
|
|
this.btnStart_10.Text = "启动服务器";
|
|||
|
|
this.btnStart_10.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnStart_10.Click += new System.EventHandler(this.btnStart_10_Click);
|
|||
|
|
//
|
|||
|
|
// btnClose_10
|
|||
|
|
//
|
|||
|
|
this.btnClose_10.Location = new System.Drawing.Point(310, 495);
|
|||
|
|
this.btnClose_10.Name = "btnClose_10";
|
|||
|
|
this.btnClose_10.Size = new System.Drawing.Size(75, 23);
|
|||
|
|
this.btnClose_10.TabIndex = 12;
|
|||
|
|
this.btnClose_10.Text = "关闭服务器";
|
|||
|
|
this.btnClose_10.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnClose_10.Click += new System.EventHandler(this.btnClose_10_Click);
|
|||
|
|
//
|
|||
|
|
// btnDisconnect_10
|
|||
|
|
//
|
|||
|
|
this.btnDisconnect_10.Location = new System.Drawing.Point(398, 495);
|
|||
|
|
this.btnDisconnect_10.Name = "btnDisconnect_10";
|
|||
|
|
this.btnDisconnect_10.Size = new System.Drawing.Size(76, 23);
|
|||
|
|
this.btnDisconnect_10.TabIndex = 13;
|
|||
|
|
this.btnDisconnect_10.Text = "关闭连接";
|
|||
|
|
this.btnDisconnect_10.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnDisconnect_10.Click += new System.EventHandler(this.btnDisconnect_10_Click);
|
|||
|
|
//
|
|||
|
|
// ServerForm
|
|||
|
|
//
|
|||
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|||
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|||
|
|
this.ClientSize = new System.Drawing.Size(781, 537);
|
|||
|
|
this.Controls.Add(this.btnDisconnect_10);
|
|||
|
|
this.Controls.Add(this.btnClose_10);
|
|||
|
|
this.Controls.Add(this.btnStart_10);
|
|||
|
|
this.Controls.Add(this.tbPort_10);
|
|||
|
|
this.Controls.Add(this.label2);
|
|||
|
|
this.Controls.Add(this.tbIP_10);
|
|||
|
|
this.Controls.Add(this.label1);
|
|||
|
|
this.Controls.Add(this.txtSend);
|
|||
|
|
this.Controls.Add(this.txtRecv);
|
|||
|
|
this.Controls.Add(this.btnDisconnect);
|
|||
|
|
this.Controls.Add(this.lblPort);
|
|||
|
|
this.Controls.Add(this.lblIP);
|
|||
|
|
this.Controls.Add(this.tbPort);
|
|||
|
|
this.Controls.Add(this.tbIP);
|
|||
|
|
this.Controls.Add(this.btnStart);
|
|||
|
|
this.Controls.Add(this.btnClose);
|
|||
|
|
this.Controls.Add(this.btnSend);
|
|||
|
|
this.Controls.Add(this.btnClear);
|
|||
|
|
this.Controls.Add(this.txtLog);
|
|||
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|||
|
|
this.MaximizeBox = false;
|
|||
|
|
this.Name = "ServerForm";
|
|||
|
|
this.Text = "服务端--自研";
|
|||
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ServerForm_FormClosing);
|
|||
|
|
this.Load += new System.EventHandler(this.ServerForm_Load);
|
|||
|
|
this.ResumeLayout(false);
|
|||
|
|
this.PerformLayout();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
private System.Windows.Forms.Button btnClear;
|
|||
|
|
private System.Windows.Forms.Button btnSend;
|
|||
|
|
private System.Windows.Forms.TextBox tbIP;
|
|||
|
|
private System.Windows.Forms.TextBox tbPort;
|
|||
|
|
private System.Windows.Forms.Label lblIP;
|
|||
|
|
private System.Windows.Forms.Label lblPort;
|
|||
|
|
private System.Windows.Forms.Button btnStart;
|
|||
|
|
private System.Windows.Forms.Button btnClose;
|
|||
|
|
private System.Windows.Forms.Button btnDisconnect;
|
|||
|
|
private System.Windows.Forms.TextBox txtLog;
|
|||
|
|
private System.Windows.Forms.RichTextBox txtRecv;
|
|||
|
|
private System.Windows.Forms.RichTextBox txtSend;
|
|||
|
|
private System.Windows.Forms.Label label1;
|
|||
|
|
private System.Windows.Forms.TextBox tbIP_10;
|
|||
|
|
private System.Windows.Forms.Label label2;
|
|||
|
|
private System.Windows.Forms.TextBox tbPort_10;
|
|||
|
|
private System.Windows.Forms.Button btnStart_10;
|
|||
|
|
private System.Windows.Forms.Button btnClose_10;
|
|||
|
|
private System.Windows.Forms.Button btnDisconnect_10;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|