?? about.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace notepad
{
/// <summary>
/// About 的摘要說明。
/// </summary>
public class About : System.Windows.Forms.Form
{
private System.Windows.Forms.MenuItem menuSure;
private System.Windows.Forms.Label abouttext;
private System.Windows.Forms.MainMenu mainAbout;
public About()
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
//
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows 窗體設計器生成的代碼
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
this.mainAbout = new System.Windows.Forms.MainMenu();
this.menuSure = new System.Windows.Forms.MenuItem();
this.abouttext = new System.Windows.Forms.Label();
//
// mainAbout
//
this.mainAbout.MenuItems.Add(this.menuSure);
//
// menuSure
//
this.menuSure.Text = "確定";
this.menuSure.Click += new System.EventHandler(this.menuSure_Click);
//
// abouttext
//
this.abouttext.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular);
this.abouttext.Location = new System.Drawing.Point(4, 4);
this.abouttext.Size = new System.Drawing.Size(170, 180);
//
// About
//
this.Controls.Add(this.abouttext);
this.Menu = this.mainAbout;
this.Text = "關于本程序";
this.Load += new System.EventHandler(this.About_Load);
}
#endregion
private void menuSure_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void About_Load(object sender, System.EventArgs e)
{
abouttext.Text = "名稱:NotePad\n";
abouttext.Text += "版本:v 0.1\n\n";
abouttext.Text += "作者:陳佳苑\n";
abouttext.Text += "Email:hance@martcn.com\n\n";
abouttext.Text += "作者聲明:\n";
abouttext.Text += "1.任何人在未經允許的情況下將本軟件用于商業用途。\n";
abouttext.Text += "2.非贏利用戶可以任意復制傳播此軟件。\n";
abouttext.Text += "3.有任何意見和建議請寫郵件給我。";
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -