⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 highscore.cs

📁 这个程序是基于c#平台的俄罗斯方框游戏。拿来共享。要求加分哦!
💻 CS
📖 第 1 页 / 共 5 页
字号:


using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Resources;
using Microsoft.Win32;

namespace AnotherBlock
{
	/// <summary>
	/// High Score dialog.
	/// </summary>
	public class HighScore : System.Windows.Forms.Form
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		/// <summary>
		/// Label with the text "Name".
		/// </summary>
		private System.Windows.Forms.Label lblTextName;
		/// <summary>
		/// Label with the text "Score".
		/// </summary>
		private System.Windows.Forms.Label lblTextScore;
		/// <summary>
		/// Label with the text "#1".
		/// </summary>
		private System.Windows.Forms.Label lblPosition1;
		/// <summary>
		/// Label with the text "#2".
		/// </summary>
		private System.Windows.Forms.Label lblPosition2;
		/// <summary>
		/// Label with the text "#3".
		/// </summary>
		private System.Windows.Forms.Label lblPosition3;
		/// <summary>
		/// Label with the text "#4".
		/// </summary>
		private System.Windows.Forms.Label lblPosition4;
		/// <summary>
		/// Label with the text "#5".
		/// </summary>
		private System.Windows.Forms.Label lblPosition5;
		/// <summary>
		/// Label with the text "#6".
		/// </summary>
		private System.Windows.Forms.Label lblPosition6;
		/// <summary>
		/// Label with the text "#7".
		/// </summary>
		private System.Windows.Forms.Label lblPosition7;
		/// <summary>
		/// Label with the text "#8".
		/// </summary>
		private System.Windows.Forms.Label lblPosition8;
		/// <summary>
		/// Label with the text "#9".
		/// </summary>
		private System.Windows.Forms.Label lblPosition9;
		/// <summary>
		/// Label with the text "#10".
		/// </summary>
		private System.Windows.Forms.Label lblPosition10;
		/// <summary>
		/// Label with the score of the first high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore1;
		/// <summary>
		/// Label with the name of the first high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName1;
		/// <summary>
		/// Label with the score of the second high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore2;
		/// <summary>
		/// Label with the name of the second high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName2;
		/// <summary>
		/// Label with the score of the third high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore3;
		/// <summary>
		/// Label with the name of the third high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName3;
		/// <summary>
		/// Label with the score of the fourth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore4;
		/// <summary>
		/// Label with the name of the fourth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName4;
		/// <summary>
		/// Label with the score of the fifith high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore5;
		/// <summary>
		/// Label with the name of the fifith high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName5;
		/// <summary>
		/// Label with the score of the sixth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore6;
		/// <summary>
		/// Label with the name of the sixth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName6;
		/// <summary>
		/// Label with the score of the seventh high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore7;
		/// <summary>
		/// Label with the name of the seventh high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName7;
		/// <summary>
		/// Label with the score of the eighth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore8;
		/// <summary>
		/// Label with the name of the eighth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName8;
		/// <summary>
		/// Label with the score of the nineth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore9;
		/// <summary>
		/// Label with the name of the nineth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName9;
		/// <summary>
		/// Label with the score of the tenth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblScore10;
		/// <summary>
		/// Label with the name of the tenth high score entry.
		/// </summary>
		private System.Windows.Forms.Label lblName10;
		/// <summary>
		/// "Ok" button.
		/// </summary>
		private System.Windows.Forms.Button butOk;
		/// <summary>
		/// "Reset Scores" button.
		/// </summary>
		private System.Windows.Forms.Button butReset;

		/// <summary>
		/// Private attribute that holds the current position of inserted high scores.
		/// </summary>
		private int currentPosition = 0;
		/// <summary>
		/// Private attribute that holds the resource file with the localized resource strings.
		/// </summary>
		private ResourceManager resources = new ResourceManager("AnotherBlock.Resources", typeof(AnotherBlockMain).Assembly);

		/// <summary>
		/// Class constructor that creates the High Score dialog.
		/// </summary>
		public HighScore()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -