📄 about.cs
字号:
using System;
using System.Windows.Forms;
using System.Reflection;
namespace Pex
{
/// <summary>
/// Summary description for About.
/// </summary>
public class About : System.Windows.Forms.Form
{
#region --- Controls ---
private System.Windows.Forms.Label lbDefinition;
private System.Windows.Forms.Label lbLicense;
private System.Windows.Forms.Label lbTechnology;
private System.Windows.Forms.Label lbContact;
private System.Windows.Forms.Label lbAuthor;
private System.Windows.Forms.Label lbVersion;
private System.Windows.Forms.PictureBox pbPex;
#endregion
public About()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
#region Windows Form Designer generated code
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(About));
//
// pbPex
//
this.pbPex = new System.Windows.Forms.PictureBox();
this.pbPex.Parent = this;
this.pbPex.Image = ((System.Drawing.Image)(resources.GetObject("pbPex.Image")));
this.pbPex.Location = new System.Drawing.Point(8, 16);
this.pbPex.Size = new System.Drawing.Size(48, 48);
this.pbPex.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
//
// lbDefinition
//
this.lbDefinition = new System.Windows.Forms.Label();
this.lbDefinition.Parent = this;
this.lbDefinition.Font = ((System.Drawing.Font)(resources.GetObject("lbDefinition.Font")));
this.lbDefinition.Location = ((System.Drawing.Point)(resources.GetObject("lbDefinition.Location")));
this.lbDefinition.Size = ((System.Drawing.Size)(resources.GetObject("lbDefinition.Size")));
this.lbDefinition.Text = resources.GetString("lbDefinition.Text");
//
// lbLicense
//
this.lbLicense = new System.Windows.Forms.Label();
this.lbLicense.Parent = this;
this.lbLicense.Font = ((System.Drawing.Font)(resources.GetObject("lbLicense.Font")));
this.lbLicense.Location = ((System.Drawing.Point)(resources.GetObject("lbLicense.Location")));
this.lbLicense.Size = ((System.Drawing.Size)(resources.GetObject("lbLicense.Size")));
this.lbLicense.Text = resources.GetString("lbLicense.Text");
//
// lbTechnology
//
this.lbTechnology = new System.Windows.Forms.Label();
this.lbTechnology.Parent = this;
this.lbTechnology.Font = ((System.Drawing.Font)(resources.GetObject("lbTechnology.Font")));
this.lbTechnology.Location = ((System.Drawing.Point)(resources.GetObject("lbTechnology.Location")));
this.lbTechnology.Size = ((System.Drawing.Size)(resources.GetObject("lbTechnology.Size")));
this.lbTechnology.Text = resources.GetString("lbTechnology.Text");
//
// lbContact
//
this.lbContact = new System.Windows.Forms.Label();
this.lbContact.Parent = this;
this.lbContact.Font = ((System.Drawing.Font)(resources.GetObject("lbContact.Font")));
this.lbContact.Location = ((System.Drawing.Point)(resources.GetObject("lbContact.Location")));
this.lbContact.Size = ((System.Drawing.Size)(resources.GetObject("lbContact.Size")));
this.lbContact.Text = resources.GetString("lbContact.Text");
//
// lbAuthor
//
this.lbAuthor = new System.Windows.Forms.Label();
this.lbAuthor.Parent = this;
this.lbAuthor.Font = ((System.Drawing.Font)(resources.GetObject("lbAuthor.Font")));
this.lbAuthor.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.lbAuthor.Location = ((System.Drawing.Point)(resources.GetObject("lbAuthor.Location")));
this.lbAuthor.Size = ((System.Drawing.Size)(resources.GetObject("lbAuthor.Size")));
this.lbAuthor.Text = resources.GetString("lbAuthor.Text");
//
// lbVersion
//
this.lbVersion = new System.Windows.Forms.Label();
this.lbVersion.Parent = this;
this.lbVersion.Font = ((System.Drawing.Font)(resources.GetObject("lbVersion.Font")));
this.lbVersion.Location = ((System.Drawing.Point)(resources.GetObject("lbVersion.Location")));
this.lbVersion.Size = ((System.Drawing.Size)(resources.GetObject("lbVersion.Size")));
this.lbVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
//
// About
//
this.Text = resources.GetString("$this.Text");
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -