📄 aboutbox.cs
字号:
////////////////////////////////////////////////
//
// Project: Lines.NET
// Version: 1.1
// Author: Vladimir L.
//
// homepage: http://www.boomsoft.org
// e-mail: support@boomsoft.org
//
// Copyright (c) 2003-2004, Boomsoft.org
//
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Lines
{
/// <summary>
/// Represents AboutBox dialog of Lines.NET game.
/// </summary>
/// <remarks>
/// This class is sensitive to the <see cref="AppSettings.IsPocketPC"/> application property.
/// </remarks>
public class AboutBox : Form
{
private PictureBox iconLogo;
private Label labelName;
private Label labelCopyright;
private Label labelEmail;
private Label labelWeb;
private TextBox textEmail;
private TextBox textWeb;
private Label labelCompany;
private MainMenu menuStub;
private Button buttonOK;
/// <summary>
/// Creates an instance of AboutBox dialog class.
/// </summary>
public AboutBox()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
if (AppSettings.Instance.IsPocketPC)
{
menuStub = new MainMenu();
Menu = menuStub;
}
}
/// <summary>
/// Cleans up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <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(AboutBox));
this.iconLogo = new System.Windows.Forms.PictureBox();
this.labelName = new System.Windows.Forms.Label();
this.buttonOK = new System.Windows.Forms.Button();
this.labelCopyright = new System.Windows.Forms.Label();
this.labelEmail = new System.Windows.Forms.Label();
this.labelWeb = new System.Windows.Forms.Label();
this.textEmail = new System.Windows.Forms.TextBox();
this.textWeb = new System.Windows.Forms.TextBox();
this.labelCompany = new System.Windows.Forms.Label();
//
// iconLogo
//
this.iconLogo.Image = ((System.Drawing.Image)(resources.GetObject("iconLogo.Image")));
this.iconLogo.Location = new System.Drawing.Point(4, 4);
this.iconLogo.Size = new System.Drawing.Size(32, 32);
this.iconLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
//
// labelName
//
this.labelName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular);
this.labelName.Location = new System.Drawing.Point(40, 8);
this.labelName.Size = new System.Drawing.Size(192, 16);
this.labelName.Text = "Lines.NET ver. 1.1";
this.labelName.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// buttonOK
//
this.buttonOK.Location = new System.Drawing.Point(101, 112);
this.buttonOK.Size = new System.Drawing.Size(64, 24);
this.buttonOK.Text = "OK";
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// labelCopyright
//
this.labelCopyright.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular);
this.labelCopyright.Location = new System.Drawing.Point(40, 24);
this.labelCopyright.Size = new System.Drawing.Size(192, 16);
this.labelCopyright.Text = "Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -