184 lines
		
	
	
		
			7.8 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			184 lines
		
	
	
		
			7.8 KiB
		
	
	
	
		
			C#
		
	
	
	
|  | namespace DNLightSvr | |||
|  | { | |||
|  |     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 窗体设计器生成的代码 | |||
|  | 
 | |||
|  |         /// <summary> | |||
|  |         /// 设计器支持所需的方法 - 不要 | |||
|  |         /// 使用代码编辑器修改此方法的内容。 | |||
|  |         /// </summary> | |||
|  |         private void InitializeComponent() | |||
|  |         { | |||
|  |             this.lbStatus = new System.Windows.Forms.Label(); | |||
|  |             this.lbUrl = new System.Windows.Forms.Label(); | |||
|  |             this.btnBack = new System.Windows.Forms.Button(); | |||
|  |             this.btnTestrequest = new System.Windows.Forms.Button(); | |||
|  |             this.textLog = new System.Windows.Forms.TextBox(); | |||
|  |             this.btnTest = new System.Windows.Forms.Button(); | |||
|  |             this.lbPorts = new System.Windows.Forms.Label(); | |||
|  |             this.btnRefresh = new System.Windows.Forms.Button(); | |||
|  |             this.btnClear = new System.Windows.Forms.Button(); | |||
|  |             this.btnReset = new System.Windows.Forms.Button(); | |||
|  |             this.SuspendLayout(); | |||
|  |             //  | |||
|  |             // lbStatus | |||
|  |             //  | |||
|  |             this.lbStatus.AutoSize = true; | |||
|  |             this.lbStatus.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); | |||
|  |             this.lbStatus.Location = new System.Drawing.Point(12, 39); | |||
|  |             this.lbStatus.Name = "lbStatus"; | |||
|  |             this.lbStatus.Size = new System.Drawing.Size(135, 24); | |||
|  |             this.lbStatus.TabIndex = 0; | |||
|  |             this.lbStatus.Text = "服务未启动"; | |||
|  |             //  | |||
|  |             // lbUrl | |||
|  |             //  | |||
|  |             this.lbUrl.AutoSize = true; | |||
|  |             this.lbUrl.Font = new System.Drawing.Font("宋体", 12F); | |||
|  |             this.lbUrl.Location = new System.Drawing.Point(12, 89); | |||
|  |             this.lbUrl.Name = "lbUrl"; | |||
|  |             this.lbUrl.Size = new System.Drawing.Size(80, 16); | |||
|  |             this.lbUrl.TabIndex = 1; | |||
|  |             this.lbUrl.Text = "url不可用"; | |||
|  |             //  | |||
|  |             // btnBack | |||
|  |             //  | |||
|  |             this.btnBack.Location = new System.Drawing.Point(716, 147); | |||
|  |             this.btnBack.Name = "btnBack"; | |||
|  |             this.btnBack.Size = new System.Drawing.Size(105, 23); | |||
|  |             this.btnBack.TabIndex = 4; | |||
|  |             this.btnBack.Text = "测试回传"; | |||
|  |             this.btnBack.UseVisualStyleBackColor = true; | |||
|  |             this.btnBack.Click += new System.EventHandler(this.btnBack_Click); | |||
|  |             //  | |||
|  |             // btnTestrequest | |||
|  |             //  | |||
|  |             this.btnTestrequest.Location = new System.Drawing.Point(716, 177); | |||
|  |             this.btnTestrequest.Name = "btnTestrequest"; | |||
|  |             this.btnTestrequest.Size = new System.Drawing.Size(105, 23); | |||
|  |             this.btnTestrequest.TabIndex = 5; | |||
|  |             this.btnTestrequest.Text = "测试服务"; | |||
|  |             this.btnTestrequest.UseVisualStyleBackColor = true; | |||
|  |             this.btnTestrequest.Click += new System.EventHandler(this.btnTestrequest_Click); | |||
|  |             //  | |||
|  |             // textLog | |||
|  |             //  | |||
|  |             this.textLog.Location = new System.Drawing.Point(11, 227); | |||
|  |             this.textLog.Multiline = true; | |||
|  |             this.textLog.Name = "textLog"; | |||
|  |             this.textLog.ReadOnly = true; | |||
|  |             this.textLog.Size = new System.Drawing.Size(809, 335); | |||
|  |             this.textLog.TabIndex = 6; | |||
|  |             //  | |||
|  |             // btnTest | |||
|  |             //  | |||
|  |             this.btnTest.Location = new System.Drawing.Point(716, 87); | |||
|  |             this.btnTest.Name = "btnTest"; | |||
|  |             this.btnTest.Size = new System.Drawing.Size(105, 23); | |||
|  |             this.btnTest.TabIndex = 7; | |||
|  |             this.btnTest.Text = "测试亮灯"; | |||
|  |             this.btnTest.UseVisualStyleBackColor = true; | |||
|  |             this.btnTest.Click += new System.EventHandler(this.btnTest_Click); | |||
|  |             //  | |||
|  |             // lbPorts | |||
|  |             //  | |||
|  |             this.lbPorts.AutoSize = true; | |||
|  |             this.lbPorts.Font = new System.Drawing.Font("宋体", 12F); | |||
|  |             this.lbPorts.Location = new System.Drawing.Point(12, 178); | |||
|  |             this.lbPorts.Name = "lbPorts"; | |||
|  |             this.lbPorts.Size = new System.Drawing.Size(88, 16); | |||
|  |             this.lbPorts.TabIndex = 8; | |||
|  |             this.lbPorts.Text = "无活动端口"; | |||
|  |             //  | |||
|  |             // btnRefresh | |||
|  |             //  | |||
|  |             this.btnRefresh.Location = new System.Drawing.Point(596, 147); | |||
|  |             this.btnRefresh.Name = "btnRefresh"; | |||
|  |             this.btnRefresh.Size = new System.Drawing.Size(102, 23); | |||
|  |             this.btnRefresh.TabIndex = 9; | |||
|  |             this.btnRefresh.Text = "重启服务"; | |||
|  |             this.btnRefresh.UseVisualStyleBackColor = true; | |||
|  |             this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); | |||
|  |             //  | |||
|  |             // btnClear | |||
|  |             //  | |||
|  |             this.btnClear.Location = new System.Drawing.Point(716, 117); | |||
|  |             this.btnClear.Name = "btnClear"; | |||
|  |             this.btnClear.Size = new System.Drawing.Size(105, 23); | |||
|  |             this.btnClear.TabIndex = 10; | |||
|  |             this.btnClear.Text = "测试清除"; | |||
|  |             this.btnClear.UseVisualStyleBackColor = true; | |||
|  |             this.btnClear.Click += new System.EventHandler(this.btnClear_Click); | |||
|  |             //  | |||
|  |             // btnReset | |||
|  |             //  | |||
|  |             this.btnReset.Location = new System.Drawing.Point(596, 177); | |||
|  |             this.btnReset.Name = "btnReset"; | |||
|  |             this.btnReset.Size = new System.Drawing.Size(102, 23); | |||
|  |             this.btnReset.TabIndex = 11; | |||
|  |             this.btnReset.Text = "硬件重置"; | |||
|  |             this.btnReset.UseVisualStyleBackColor = true; | |||
|  |             this.btnReset.Click += new System.EventHandler(this.btnReset_Click); | |||
|  |             //  | |||
|  |             // form1 | |||
|  |             //  | |||
|  |             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
|  |             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
|  |             this.ClientSize = new System.Drawing.Size(831, 574); | |||
|  |             this.Controls.Add(this.btnReset); | |||
|  |             this.Controls.Add(this.btnClear); | |||
|  |             this.Controls.Add(this.btnRefresh); | |||
|  |             this.Controls.Add(this.lbPorts); | |||
|  |             this.Controls.Add(this.btnTest); | |||
|  |             this.Controls.Add(this.textLog); | |||
|  |             this.Controls.Add(this.btnTestrequest); | |||
|  |             this.Controls.Add(this.btnBack); | |||
|  |             this.Controls.Add(this.lbUrl); | |||
|  |             this.Controls.Add(this.lbStatus); | |||
|  |             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; | |||
|  |             this.MaximizeBox = false; | |||
|  |             this.Name = "form1"; | |||
|  |             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; | |||
|  |             this.Text = "亮灯服务"; | |||
|  |             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.form1_FormClosing); | |||
|  |             this.Load += new System.EventHandler(this.Form1_Load); | |||
|  |             this.ResumeLayout(false); | |||
|  |             this.PerformLayout(); | |||
|  | 
 | |||
|  |         } | |||
|  | 
 | |||
|  |         #endregion | |||
|  | 
 | |||
|  |         private System.Windows.Forms.Label lbStatus; | |||
|  |         private System.Windows.Forms.Label lbUrl; | |||
|  |         private System.Windows.Forms.Button btnBack; | |||
|  |         private System.Windows.Forms.Button btnTestrequest; | |||
|  |         private System.Windows.Forms.TextBox textLog; | |||
|  |         private System.Windows.Forms.Button btnTest; | |||
|  |         private System.Windows.Forms.Label lbPorts; | |||
|  |         private System.Windows.Forms.Button btnRefresh; | |||
|  |         private System.Windows.Forms.Button btnClear; | |||
|  |         private System.Windows.Forms.Button btnReset; | |||
|  |     } | |||
|  | } | |||
|  | 
 |