• 大小: 844KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-05-05
  • 语言: C#
  • 标签: 消消乐  C#  

资源简介

基于C#写的开心消消乐游戏,游戏可以作为初学者入门编程的好实例,设计的知识点也很多。通过该实例你可以了解到C#的基本知识点。能够看到积分排名,可以计算时间,计算得分!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Game
{
    partial class AboutBoxGame : Form
    {
        public AboutBoxGame()
        {
            InitializeComponent();
            this.Text = String.Format(“关于 {0}“ Assemblytitle);
            this.labelProductName.Text = AssemblyProduct;
            this.labelVersion.Text = String.Format(“版本 {0}“ AssemblyVersion);
            this.labelCopyright.Text = AssemblyCopyright;
            this.labelCompanyName.Text = AssemblyCompany;
            this.textBoxDescription.Text = AssemblyDescription;
        }

        #region 程序集特性访问器

        public string Assemblytitle
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
                if (attributes.Length > 0)
                {
                    AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
                    if (titleAttribute.title != ““)
                    {
                        return titleAttribute.title;
                    }
                }
                return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        public string AssemblyDescription
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyDescriptionAttribute)attributes[0]).Description;
            }
        }

        public string AssemblyProduct
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyProductAttribute)attributes[0]).Product;
            }
        }

        public string AssemblyCopyright
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
            }
        }

        public 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9662  2015-07-27 15:59  ConsumerMusicGame\48X48.ico

     文件       3646  2015-10-14 18:13  ConsumerMusicGame\AboutBoxGame.cs

     文件      10550  2015-07-22 19:31  ConsumerMusicGame\AboutBoxGame.Designer.cs

     文件      49145  2015-10-14 18:13  ConsumerMusicGame\AboutBoxGame.resx

     文件       3207  2015-07-27 18:15  ConsumerMusicGame\App.config

     文件       2143  2015-10-14 18:13  ConsumerMusicGame\bin\Debug\Game.application

     文件     156672  2015-10-14 18:13  ConsumerMusicGame\bin\Debug\Game.exe

     文件       3207  2015-07-27 18:15  ConsumerMusicGame\bin\Debug\Game.exe.config

     文件       5117  2015-10-14 18:13  ConsumerMusicGame\bin\Debug\Game.exe.manifest

     文件      79360  2015-10-14 18:13  ConsumerMusicGame\bin\Debug\Game.pdb

     文件       2143  2015-10-14 18:13  ConsumerMusicGame\bin\Debug\Game.vshost.application

     文件      24224  2015-10-14 18:14  ConsumerMusicGame\bin\Debug\Game.vshost.exe

     文件       3207  2015-07-27 18:15  ConsumerMusicGame\bin\Debug\Game.vshost.exe.config

     文件       5117  2015-10-14 18:13  ConsumerMusicGame\bin\Debug\Game.vshost.exe.manifest

     文件        114  2015-07-27 16:48  ConsumerMusicGame\bin\Debug\ScoreTop10.bin

     文件       8411  2015-08-06 10:14  ConsumerMusicGame\ClassGame.cs

     文件     218240  2015-07-22 23:30  ConsumerMusicGame\CodeMapGame\CodeMapGame.dgml

     文件      21232  2015-08-08 12:27  ConsumerMusicGame\FormGame.cs

     文件      17324  2015-08-08 12:24  ConsumerMusicGame\FormGame.Designer.cs

     文件      30302  2015-08-08 12:24  ConsumerMusicGame\FormGame.resx

     文件       7563  2015-08-08 12:28  ConsumerMusicGame\Game.csproj

     文件        695  2015-07-28 13:20  ConsumerMusicGame\Game.csproj.user

     文件        976  2015-10-14 18:11  ConsumerMusicGame\Game.sln

     文件      51200  2015-10-14 18:14  ConsumerMusicGame\Game.v12.suo

     文件       1684  2015-07-23 14:39  ConsumerMusicGame\Game_TemporaryKey.pfx

     文件      19235  2015-07-23 16:11  ConsumerMusicGame\Image\0.png

     文件       5485  2013-10-23 21:48  ConsumerMusicGame\Image\1.png

     文件      10642  2013-10-23 22:17  ConsumerMusicGame\Image\2.png

     文件      10594  2013-10-23 22:13  ConsumerMusicGame\Image\3.png

     文件      11244  2013-10-23 21:48  ConsumerMusicGame\Image\4.png

............此处省略46个文件信息

评论

共有 条评论