• 大小: 396KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-19
  • 语言: C#
  • 标签: 小游戏  源码  C#  

资源简介

[说明] 本小游戏素材来自于原版“是男人就下一百层”小游戏,仅供学习与研究用途。适合.NET入门者练习的一个实例,本小游戏中涉及到抽象类,抽象方法,方法重载,类的继承,事件,委托,GDI+画图的综合应用。 [开发环境] WinXP Visual Studio 2008

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;

namespace GoTo100layer
{
    partial class AboutForm : Form
    {
        public AboutForm()
        {
            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 string AssemblyCompany
        {
            ge

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

     文件       3540  2009-03-05 14:43  GoTo100layer\GoTo100layer\AboutForm.cs

     文件      10543  2009-03-05 14:43  GoTo100layer\GoTo100layer\AboutForm.Designer.cs

     文件      49723  2009-03-05 14:43  GoTo100layer\GoTo100layer\AboutForm.resx

     文件       1524  2009-03-03 09:26  GoTo100layer\GoTo100layer\baseItem.cs

     文件      72704  2009-03-05 15:14  GoTo100layer\GoTo100layer\bin\Release\GoTo100layer.exe

     文件      14328  2009-03-05 15:12  GoTo100layer\GoTo100layer\bin\Release\GoTo100layer.vshost.exe

     文件        490  2007-07-21 01:33  GoTo100layer\GoTo100layer\bin\Release\GoTo100layer.vshost.exe.manifest

     文件       2335  2009-03-05 14:35  GoTo100layer\GoTo100layer\Flatform\baseFlatform.cs

     文件        751  2009-03-04 11:26  GoTo100layer\GoTo100layer\Flatform\ChiFlatform.cs

     文件       2414  2009-03-04 15:24  GoTo100layer\GoTo100layer\Flatform\ChuanSongDaiPlatform.cs

     文件        699  2009-03-04 11:26  GoTo100layer\GoTo100layer\Flatform\StoneFlatform.cs

     文件       5523  2009-03-05 14:41  GoTo100layer\GoTo100layer\GoTo100layer.csproj

     文件       5672  2009-03-05 15:14  GoTo100layer\GoTo100layer\MainForm.cs

     文件       6878  2009-03-05 15:08  GoTo100layer\GoTo100layer\MainForm.Designer.cs

     文件       6008  2009-03-05 15:08  GoTo100layer\GoTo100layer\MainForm.resx

     文件      29561  2009-03-05 14:43  GoTo100layer\GoTo100layer\obj\Debug\GoTo100layer.AboutForm.resources

     文件        746  2009-03-05 14:59  GoTo100layer\GoTo100layer\obj\Debug\GoTo100layer.csproj.FileListAbsolute.txt

     文件       1661  2009-03-05 14:55  GoTo100layer\GoTo100layer\obj\Debug\GoTo100layer.csproj.GenerateResource.Cache

     文件      73728  2009-03-05 15:03  GoTo100layer\GoTo100layer\obj\Debug\GoTo100layer.exe

     文件        180  2009-03-05 14:55  GoTo100layer\GoTo100layer\obj\Debug\GoTo100layer.MainForm.resources

     文件      75264  2009-03-05 15:03  GoTo100layer\GoTo100layer\obj\Debug\GoTo100layer.pdb

     文件      18169  2009-03-05 14:41  GoTo100layer\GoTo100layer\obj\Debug\GoTo100layer.Properties.Resources.resources

     文件       6656  2009-03-04 11:22  GoTo100layer\GoTo100layer\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        306  2009-02-27 15:46  GoTo100layer\GoTo100layer\obj\GoTo100layer.csproj.FileList.txt

     文件      29561  2009-03-05 15:04  GoTo100layer\GoTo100layer\obj\Release\GoTo100layer.AboutForm.resources

     文件        764  2009-03-05 15:12  GoTo100layer\GoTo100layer\obj\Release\GoTo100layer.csproj.FileListAbsolute.txt

     文件       1661  2009-03-05 15:08  GoTo100layer\GoTo100layer\obj\Release\GoTo100layer.csproj.GenerateResource.Cache

     文件      72704  2009-03-05 15:14  GoTo100layer\GoTo100layer\obj\Release\GoTo100layer.exe

     文件        180  2009-03-05 15:08  GoTo100layer\GoTo100layer\obj\Release\GoTo100layer.MainForm.resources

     文件      69120  2009-03-05 15:14  GoTo100layer\GoTo100layer\obj\Release\GoTo100layer.pdb

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

评论

共有 条评论