166 lines
		
	
	
		
			7.0 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			166 lines
		
	
	
		
			7.0 KiB
		
	
	
	
		
			C#
		
	
	
	
|  | namespace DNExamples | |||
|  | { | |||
|  |     partial class frmExample | |||
|  |     { | |||
|  |         /// <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.lbReturn = new System.Windows.Forms.Label(); | |||
|  |             this.btnLights = new System.Windows.Forms.Button(); | |||
|  |             this.lbLightOffReturn = new System.Windows.Forms.Label(); | |||
|  |             this.btnOff = new System.Windows.Forms.Button(); | |||
|  |             this.btnReset = new System.Windows.Forms.Button(); | |||
|  |             this.btnOpenLed = new System.Windows.Forms.Button(); | |||
|  |             this.btnCloseLed = new System.Windows.Forms.Button(); | |||
|  |             this.combComs = new System.Windows.Forms.ComboBox(); | |||
|  |             this.label1 = new System.Windows.Forms.Label(); | |||
|  |             this.SuspendLayout(); | |||
|  |             //  | |||
|  |             // lbReturn | |||
|  |             //  | |||
|  |             this.lbReturn.AutoSize = true; | |||
|  |             this.lbReturn.Location = new System.Drawing.Point(41, 117); | |||
|  |             this.lbReturn.Name = "lbReturn"; | |||
|  |             this.lbReturn.Size = new System.Drawing.Size(11, 12); | |||
|  |             this.lbReturn.TabIndex = 0; | |||
|  |             this.lbReturn.Text = " "; | |||
|  |             //  | |||
|  |             // btnLights | |||
|  |             //  | |||
|  |             this.btnLights.Location = new System.Drawing.Point(43, 68); | |||
|  |             this.btnLights.Name = "btnLights"; | |||
|  |             this.btnLights.Size = new System.Drawing.Size(95, 23); | |||
|  |             this.btnLights.TabIndex = 1; | |||
|  |             this.btnLights.Text = "点亮一组灯光"; | |||
|  |             this.btnLights.UseVisualStyleBackColor = true; | |||
|  |             this.btnLights.Click += new System.EventHandler(this.btnLights_Click); | |||
|  |             //  | |||
|  |             // lbLightOffReturn | |||
|  |             //  | |||
|  |             this.lbLightOffReturn.AutoSize = true; | |||
|  |             this.lbLightOffReturn.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
|  |             this.lbLightOffReturn.Location = new System.Drawing.Point(41, 129); | |||
|  |             this.lbLightOffReturn.Name = "lbLightOffReturn"; | |||
|  |             this.lbLightOffReturn.Size = new System.Drawing.Size(22, 22); | |||
|  |             this.lbLightOffReturn.TabIndex = 2; | |||
|  |             this.lbLightOffReturn.Text = " "; | |||
|  |             //  | |||
|  |             // btnOff | |||
|  |             //  | |||
|  |             this.btnOff.Location = new System.Drawing.Point(159, 68); | |||
|  |             this.btnOff.Name = "btnOff"; | |||
|  |             this.btnOff.Size = new System.Drawing.Size(95, 23); | |||
|  |             this.btnOff.TabIndex = 3; | |||
|  |             this.btnOff.Text = "熄灭灯光"; | |||
|  |             this.btnOff.UseVisualStyleBackColor = true; | |||
|  |             this.btnOff.Click += new System.EventHandler(this.btnOff_Click); | |||
|  |             //  | |||
|  |             // btnReset | |||
|  |             //  | |||
|  |             this.btnReset.Location = new System.Drawing.Point(276, 68); | |||
|  |             this.btnReset.Name = "btnReset"; | |||
|  |             this.btnReset.Size = new System.Drawing.Size(95, 23); | |||
|  |             this.btnReset.TabIndex = 4; | |||
|  |             this.btnReset.Text = "设备复位"; | |||
|  |             this.btnReset.UseVisualStyleBackColor = true; | |||
|  |             this.btnReset.Click += new System.EventHandler(this.btnReset_Click); | |||
|  |             //  | |||
|  |             // btnOpenLed | |||
|  |             //  | |||
|  |             this.btnOpenLed.Location = new System.Drawing.Point(393, 68); | |||
|  |             this.btnOpenLed.Name = "btnOpenLed"; | |||
|  |             this.btnOpenLed.Size = new System.Drawing.Size(95, 23); | |||
|  |             this.btnOpenLed.TabIndex = 5; | |||
|  |             this.btnOpenLed.Text = "点亮通道灯"; | |||
|  |             this.btnOpenLed.UseVisualStyleBackColor = true; | |||
|  |             this.btnOpenLed.Click += new System.EventHandler(this.btnOpenLed_Click); | |||
|  |             //  | |||
|  |             // btnCloseLed | |||
|  |             //  | |||
|  |             this.btnCloseLed.Location = new System.Drawing.Point(516, 68); | |||
|  |             this.btnCloseLed.Name = "btnCloseLed"; | |||
|  |             this.btnCloseLed.Size = new System.Drawing.Size(95, 23); | |||
|  |             this.btnCloseLed.TabIndex = 6; | |||
|  |             this.btnCloseLed.Text = "关闭通道灯"; | |||
|  |             this.btnCloseLed.UseVisualStyleBackColor = true; | |||
|  |             this.btnCloseLed.Click += new System.EventHandler(this.btnCloseLed_Click); | |||
|  |             //  | |||
|  |             // combComs | |||
|  |             //  | |||
|  |             this.combComs.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; | |||
|  |             this.combComs.FormattingEnabled = true; | |||
|  |             this.combComs.Location = new System.Drawing.Point(90, 28); | |||
|  |             this.combComs.Name = "combComs"; | |||
|  |             this.combComs.Size = new System.Drawing.Size(48, 20); | |||
|  |             this.combComs.TabIndex = 7; | |||
|  |             this.combComs.SelectedIndexChanged += new System.EventHandler(this.combComs_SelectedIndexChanged); | |||
|  |             //  | |||
|  |             // label1 | |||
|  |             //  | |||
|  |             this.label1.AutoSize = true; | |||
|  |             this.label1.Location = new System.Drawing.Point(43, 31); | |||
|  |             this.label1.Name = "label1"; | |||
|  |             this.label1.Size = new System.Drawing.Size(41, 12); | |||
|  |             this.label1.TabIndex = 8; | |||
|  |             this.label1.Text = "端口:"; | |||
|  |             //  | |||
|  |             // frmExample | |||
|  |             //  | |||
|  |             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
|  |             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
|  |             this.ClientSize = new System.Drawing.Size(649, 473); | |||
|  |             this.Controls.Add(this.label1); | |||
|  |             this.Controls.Add(this.combComs); | |||
|  |             this.Controls.Add(this.btnCloseLed); | |||
|  |             this.Controls.Add(this.btnOpenLed); | |||
|  |             this.Controls.Add(this.btnReset); | |||
|  |             this.Controls.Add(this.btnOff); | |||
|  |             this.Controls.Add(this.btnLights); | |||
|  |             this.Controls.Add(this.lbLightOffReturn); | |||
|  |             this.Controls.Add(this.lbReturn); | |||
|  |             this.Name = "frmExample"; | |||
|  |             this.Text = "DN接口灯光示例"; | |||
|  |             this.Load += new System.EventHandler(this.frmExample_Load); | |||
|  |             this.ResumeLayout(false); | |||
|  |             this.PerformLayout(); | |||
|  | 
 | |||
|  |         } | |||
|  | 
 | |||
|  |         #endregion | |||
|  | 
 | |||
|  |         private System.Windows.Forms.Label lbReturn; | |||
|  |         private System.Windows.Forms.Button btnLights; | |||
|  |         private System.Windows.Forms.Label lbLightOffReturn; | |||
|  |         private System.Windows.Forms.Button btnReset; | |||
|  |         private System.Windows.Forms.Button btnOff; | |||
|  |         private System.Windows.Forms.Button btnOpenLed; | |||
|  |         private System.Windows.Forms.Button btnCloseLed; | |||
|  |         private System.Windows.Forms.ComboBox combComs; | |||
|  |         private System.Windows.Forms.Label label1; | |||
|  |     } | |||
|  | } | |||
|  | 
 |