📄 help.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace MineClearance
{
/// <summary>
/// Summary description for Help.
/// </summary>
public class Help : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Help()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
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(Help));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(56, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(128, 32);
this.label1.TabIndex = 0;
this.label1.Text = "游戏方法";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Location = new System.Drawing.Point(24, 64);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(112, 24);
this.label2.TabIndex = 1;
this.label2.Text = "功能按键:";
//
// label3
//
this.label3.Location = new System.Drawing.Point(56, 96);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(192, 24);
this.label3.TabIndex = 2;
this.label3.Text = "鼠标左键: 挖掘无雷区";
//
// label4
//
this.label4.Location = new System.Drawing.Point(56, 128);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(176, 24);
this.label4.TabIndex = 3;
this.label4.Text = "鼠标右键: 为雷区打上标记";
//
// label5
//
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label5.ForeColor = System.Drawing.Color.Magenta;
this.label5.Location = new System.Drawing.Point(24, 184);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(216, 24);
this.label5.TabIndex = 4;
this.label5.Text = "祝您玩的愉快!";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// Help
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(246, 236);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.label5,
this.label4,
this.label3,
this.label2,
this.label1});
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Help";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "帮助";
this.ResumeLayout(false);
}
#endregion
protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyValue == 27 || e.KeyValue == 13) this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -