• 大小: 1.19MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-27
  • 语言: 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 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-22 23:35  Game\
     目录           0  2015-08-08 12:27  Game\Game\
     文件         981  2015-07-07 15:37  Game\Game.sln
     文件       56832  2015-08-08 12:28  Game\Game.v12.suo
     文件        9662  2015-07-27 15:59  Game\Game\48X48.ico
     文件        3646  2015-07-23 14:37  Game\Game\AboutBoxGame.cs
     文件       10550  2015-07-22 19:31  Game\Game\AboutBoxGame.Designer.cs
     文件       49145  2015-07-23 14:37  Game\Game\AboutBoxGame.resx
     文件        3207  2015-07-27 18:15  Game\Game\App.config
     目录           0  2015-07-07 15:38  Game\Game\bin\
     目录           0  2015-08-08 12:28  Game\Game\bin\Debug\
     目录           0  2015-08-08 12:28  Game\Game\bin\Debug\app.publish\
     目录           0  2015-08-08 12:28  Game\Game\bin\Debug\app.publish\Application Files\
     目录           0  2015-08-08 12:28  Game\Game\bin\Debug\app.publish\Application Files\Game_1_0_1_2\
     文件        9662  2015-07-27 15:59  Game\Game\bin\Debug\app.publish\Application Files\Game_1_0_1_2\48X48.ico.deploy
     文件        3207  2015-07-27 18:15  Game\Game\bin\Debug\app.publish\Application Files\Game_1_0_1_2\Game.exe.config.deploy
     文件      156672  2015-08-08 12:27  Game\Game\bin\Debug\app.publish\Application Files\Game_1_0_1_2\Game.exe.deploy
     文件        8847  2015-08-08 12:28  Game\Game\bin\Debug\app.publish\Application Files\Game_1_0_1_2\Game.exe.manifest
     文件          45  2015-08-08 12:28  Game\Game\bin\Debug\app.publish\autorun.inf
     文件        5940  2015-08-08 12:28  Game\Game\bin\Debug\app.publish\Game.application
     文件      435152  2015-08-08 12:28  Game\Game\bin\Debug\app.publish\setup.exe
     文件        2143  2015-08-08 12:28  Game\Game\bin\Debug\Game.application
     文件      156672  2015-08-08 12:27  Game\Game\bin\Debug\Game.exe
     文件        3207  2015-07-27 18:15  Game\Game\bin\Debug\Game.exe.config
     文件        5117  2015-08-08 12:28  Game\Game\bin\Debug\Game.exe.manifest
     文件       77312  2015-08-08 12:27  Game\Game\bin\Debug\Game.pdb
     文件        2143  2015-08-06 15:51  Game\Game\bin\Debug\Game.vshost.application
     文件       24224  2015-08-08 12:23  Game\Game\bin\Debug\Game.vshost.exe
     文件        3207  2015-07-27 18:15  Game\Game\bin\Debug\Game.vshost.exe.config
     文件        5117  2015-08-06 15:51  Game\Game\bin\Debug\Game.vshost.exe.manifest
     文件         114  2015-07-27 16:48  Game\Game\bin\Debug\ScoreTop10.bin
............此处省略52个文件信息

评论

共有 条评论