frmabout.cs
来自「OPCserver OPCserver.rar」· CS 代码 · 共 192 行
CS
192 行
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace CNETServer
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class FrmAbout : System.Windows.Forms.Form
{
public System.Windows.Forms.PictureBox picIcon;
public System.Windows.Forms.Button cmdOK;
public System.Windows.Forms.Label Label1;
public System.Windows.Forms.Label lblDescription;
public System.Windows.Forms.Label lblTitle;
public System.Windows.Forms.Label lblVersion;
public System.Windows.Forms.Label lblDisclaimer;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public FrmAbout()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmAbout));
this.picIcon = new System.Windows.Forms.PictureBox();
this.cmdOK = new System.Windows.Forms.Button();
this.Label1 = new System.Windows.Forms.Label();
this.lblDescription = new System.Windows.Forms.Label();
this.lblTitle = new System.Windows.Forms.Label();
this.lblVersion = new System.Windows.Forms.Label();
this.lblDisclaimer = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// picIcon
//
this.picIcon.BackColor = System.Drawing.SystemColors.ControlLight;
this.picIcon.Cursor = System.Windows.Forms.Cursors.Default;
this.picIcon.ForeColor = System.Drawing.SystemColors.ControlText;
this.picIcon.Image = ((System.Drawing.Image)(resources.GetObject("picIcon.Image")));
this.picIcon.Location = new System.Drawing.Point(24, 40);
this.picIcon.Name = "picIcon";
this.picIcon.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.picIcon.Size = new System.Drawing.Size(32, 32);
this.picIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.picIcon.TabIndex = 9;
this.picIcon.TabStop = false;
//
// cmdOK
//
this.cmdOK.BackColor = System.Drawing.SystemColors.Control;
this.cmdOK.Cursor = System.Windows.Forms.Cursors.Default;
this.cmdOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cmdOK.ForeColor = System.Drawing.SystemColors.ControlText;
this.cmdOK.Location = new System.Drawing.Point(335, 194);
this.cmdOK.Name = "cmdOK";
this.cmdOK.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cmdOK.Size = new System.Drawing.Size(100, 25);
this.cmdOK.TabIndex = 8;
this.cmdOK.Text = "OK";
this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click);
//
// Label1
//
this.Label1.BackColor = System.Drawing.SystemColors.Control;
this.Label1.Cursor = System.Windows.Forms.Cursors.Default;
this.Label1.ForeColor = System.Drawing.Color.Blue;
this.Label1.Location = new System.Drawing.Point(81, 127);
this.Label1.Name = "Label1";
this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.Label1.Size = new System.Drawing.Size(311, 23);
this.Label1.TabIndex = 14;
this.Label1.Text = "Author: TuoLin2003@sina.com";
//
// lblDescription
//
this.lblDescription.BackColor = System.Drawing.SystemColors.Control;
this.lblDescription.Cursor = System.Windows.Forms.Cursors.Default;
this.lblDescription.ForeColor = System.Drawing.Color.Black;
this.lblDescription.Location = new System.Drawing.Point(79, 87);
this.lblDescription.Name = "lblDescription";
this.lblDescription.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lblDescription.Size = new System.Drawing.Size(311, 23);
this.lblDescription.TabIndex = 10;
this.lblDescription.Text = "TuoLin OPC Server For C # .NET 2003 Demo ";
//
// lblTitle
//
this.lblTitle.BackColor = System.Drawing.SystemColors.Control;
this.lblTitle.Cursor = System.Windows.Forms.Cursors.Default;
this.lblTitle.ForeColor = System.Drawing.Color.Black;
this.lblTitle.Location = new System.Drawing.Point(79, 23);
this.lblTitle.Name = "lblTitle";
this.lblTitle.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lblTitle.Size = new System.Drawing.Size(311, 35);
this.lblTitle.TabIndex = 12;
this.lblTitle.Text = "Tuo Lin OPC Server ";
//
// lblVersion
//
this.lblVersion.BackColor = System.Drawing.SystemColors.Control;
this.lblVersion.Cursor = System.Windows.Forms.Cursors.Default;
this.lblVersion.ForeColor = System.Drawing.SystemColors.ControlText;
this.lblVersion.Location = new System.Drawing.Point(79, 62);
this.lblVersion.Name = "lblVersion";
this.lblVersion.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lblVersion.Size = new System.Drawing.Size(311, 16);
this.lblVersion.TabIndex = 13;
this.lblVersion.Text = "Version 1.6.1";
//
// lblDisclaimer
//
this.lblDisclaimer.BackColor = System.Drawing.SystemColors.Control;
this.lblDisclaimer.Cursor = System.Windows.Forms.Cursors.Default;
this.lblDisclaimer.ForeColor = System.Drawing.Color.Black;
this.lblDisclaimer.Location = new System.Drawing.Point(15, 194);
this.lblDisclaimer.Name = "lblDisclaimer";
this.lblDisclaimer.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lblDisclaimer.Size = new System.Drawing.Size(310, 60);
this.lblDisclaimer.TabIndex = 11;
this.lblDisclaimer.Text = "没作点限制,演示程序一次使用时为 1小时";
//
// FrmAbout
//
this.AccessibleRole = System.Windows.Forms.AccessibleRole.Cursor;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(448, 277);
this.Controls.Add(this.picIcon);
this.Controls.Add(this.cmdOK);
this.Controls.Add(this.Label1);
this.Controls.Add(this.lblDescription);
this.Controls.Add(this.lblTitle);
this.Controls.Add(this.lblVersion);
this.Controls.Add(this.lblDisclaimer);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmAbout";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "FrmAbout";
this.Load += new System.EventHandler(this.FrmAbout_Load);
this.ResumeLayout(false);
}
#endregion
private void cmdOK_Click(object sender, System.EventArgs e)
{
this.Close ();
}
private void FrmAbout_Load(object sender, System.EventArgs e)
{
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?