?? frmabout.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace FiveStones
{
/// <summary>
/// frmAbout 的摘要說明。
/// </summary>
public class frmAbout : System.Windows.Forms.Form
{
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.LinkLabel lkbEmail;
/// <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.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.btnClose = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label();
this.lkbEmail = new System.Windows.Forms.LinkLabel();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(16, 17);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(51, 50);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// label1
//
this.label1.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label1.Location = new System.Drawing.Point(80, 17);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(192, 50);
this.label1.TabIndex = 1;
this.label1.Text = "C#版五子棋\n作者:二十四畫生\n版本:1.0.0";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(196, 160);
this.btnClose.Name = "btnClose";
this.btnClose.TabIndex = 2;
this.btnClose.Text = "確定(&Q)";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// groupBox1
//
this.groupBox1.Location = new System.Drawing.Point(16, 136);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(260, 8);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 81);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(260, 31);
this.label2.TabIndex = 4;
this.label2.Text = "本軟件為免費軟件,可任意傳播復制。若需本軟件源碼請與作者聯系。";
//
// lkbEmail
//
this.lkbEmail.LinkArea = new System.Windows.Forms.LinkArea(6, 19);
this.lkbEmail.Location = new System.Drawing.Point(16, 112);
this.lkbEmail.Name = "lkbEmail";
this.lkbEmail.Size = new System.Drawing.Size(260, 23);
this.lkbEmail.TabIndex = 5;
this.lkbEmail.TabStop = true;
this.lkbEmail.Text = "Email:esshs@tom.com";
this.lkbEmail.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbEmail_LinkClicked);
//
// frmAbout
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(292, 193);
this.Controls.Add(this.lkbEmail);
this.Controls.Add(this.label2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnClose);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmAbout";
this.ShowInTaskbar = false;
this.Text = "關于 C#版五子棋";
this.ResumeLayout(false);
}
#endregion
private void btnClose_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void lkbEmail_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("mailto:esshs@tom.com");
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -