资源简介
[说明]
本小游戏素材来自于原版“是男人就下一百层”小游戏,仅供学习与研究用途。适合.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 GoTo100la
文件 10543 2009-03-05 14:43 GoTo100la
文件 49723 2009-03-05 14:43 GoTo100la
文件 1524 2009-03-03 09:26 GoTo100la
文件 72704 2009-03-05 15:14 GoTo100la
文件 14328 2009-03-05 15:12 GoTo100la
文件 490 2007-07-21 01:33 GoTo100la
文件 2335 2009-03-05 14:35 GoTo100la
文件 751 2009-03-04 11:26 GoTo100la
文件 2414 2009-03-04 15:24 GoTo100la
文件 699 2009-03-04 11:26 GoTo100la
文件 5523 2009-03-05 14:41 GoTo100la
文件 5672 2009-03-05 15:14 GoTo100la
文件 6878 2009-03-05 15:08 GoTo100la
文件 6008 2009-03-05 15:08 GoTo100la
文件 29561 2009-03-05 14:43 GoTo100la
文件 746 2009-03-05 14:59 GoTo100la
文件 1661 2009-03-05 14:55 GoTo100la
文件 73728 2009-03-05 15:03 GoTo100la
文件 180 2009-03-05 14:55 GoTo100la
文件 75264 2009-03-05 15:03 GoTo100la
文件 18169 2009-03-05 14:41 GoTo100la
文件 6656 2009-03-04 11:22 GoTo100la
文件 306 2009-02-27 15:46 GoTo100la
文件 29561 2009-03-05 15:04 GoTo100la
文件 764 2009-03-05 15:12 GoTo100la
文件 1661 2009-03-05 15:08 GoTo100la
文件 72704 2009-03-05 15:14 GoTo100la
文件 180 2009-03-05 15:08 GoTo100la
文件 69120 2009-03-05 15:14 GoTo100la
............此处省略45个文件信息
- 上一篇:C# WEB投票
- 下一篇:RS232串口通信的小软件
相关资源
- asp.net中c#做的躲避小游戏,希望大家
- c#人机猜拳小游戏(石头、剪刀、布)
- U3D 简化版跳一跳小游戏新手入门 源码
- C#贪吃蛇小游戏278387
- Unity2D小游戏——炸弹人类似qq堂的小
- C# 24个经典小游戏源码.zip
- C#控制台小游戏,过河
- 幸运52winform写的游戏
- (原创)C#控制台扫雷小游戏源码
- 基于C#的局域网内你画我猜小游戏
- c#小游戏合集
- C#小游戏集合源代码
- C#版贪吃蛇小游戏
- C#版2048小游戏源码
- C#推箱子小游戏
- C#实现界面化的24点小游戏修改版
- C#初学者制作的一个打怪小游戏
- C# 小游戏含源代码
- C#编写的小游戏贪吃蛇源码
- U3D 跳一跳小游戏 源码,整个工程文件
- unity3d小游戏,见缝插针2d
- C#数字华容道小游戏
- C#俄罗斯方块程序设计与简单实现
- C#各种小游戏开发源代码
- 五子棋小游戏 C#源代码 完整源程序
- 用C#做的各种小游戏
- 2048小游戏C#源代码
- unity跑酷小游戏-横版
- 小游戏-贪吃蛇C#控制台项目
- 猜数字游戏的C#实现带界面
评论
共有 条评论