資源簡介
課程設計題目。實現了一般性的教學管理功能;偏向于實用。使用Access數據庫。帶注釋,帶實驗文檔、審核通過,填上姓名就可以直接上交的。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Windows.Forms;
using?System.Reflection;
namespace?RG_Software
{
????partial?class?AboutBox1?:?Form
????{
????????public?AboutBox1()
????????{
????????????InitializeComponent();
????????????//??初始化?AboutBox?以顯示程序集信息中包含的產品信息。
????????????//??也可以通過以下方法更改應用程序的程序集信息設置:
????????????//??-?項目->屬性->應用程序->程序集信息
????????????//??-?AssemblyInfo.cs
????????????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
????????????{
????????????????//?獲取此程序集上的所有?title?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute)?false);
????????????????//?如果至少有一個?title?屬性
????????????????if?(attributes.Length?>?0)
????????????????{
????????????????????//?請選擇第一個屬性
????????????????????AssemblytitleAttribute?titleAttribute?=?(AssemblytitleAttribute)attributes[0];
????????????????????//?如果該屬性為非空字符串,則將其返回
????????????????????if?(titleAttribute.title?!=?““)
????????????????????????return?titleAttribute.title;
????????????????}
????????????????//?如果沒有?title?屬性,或者?title?屬性為一個空字符串,則返回?.exe?的名稱
????????????????return?System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
????????????}
????????}
????????public?string?AssemblyVersion
????????{
????????????get
????????????{
????????????????return?Assembly.GetExecutingAssembly().GetName().Version.ToString();
????????????}
????????}
????????public?string?AssemblyDescription
????????{
????????????get
????????????{
????????????????//?獲取此程序集的所有?Description?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute)?false);
????????????????//?如果?Description?屬性不存在,則返回一個空字符串
????????????????if?(attributes.Length?==?0)
????????????????????return?““;
????????????????//?如果有?Description?屬性,則返回該屬性的值
????????????????return?((AssemblyDescriptionAttribute)attributes[0]).Description;
????????????}
????????}
????????public?string?AssemblyProduct
????????{
????????????get
????????????{
????????????????//?獲取此程序集上的所有?Product?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute)?false);
????????????????//?如果?Product?屬性不存在,則返回一個空字符串
????????????????if?(attributes.Length?==?0)
????????????????????return?““;
????????????????//?如果有?Product?屬性,則返回該屬性的值
????????????????return?((AssemblyProductAttribute)attributes[0]).Produ
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5494??2009-07-02?14:22??RGS\RG?Software\RG?Software\AboutBox1.cs
?????文件??????10458??2009-07-02?14:22??RGS\RG?Software\RG?Software\AboutBox1.Designer.cs
?????文件???????5814??2009-07-02?14:22??RGS\RG?Software\RG?Software\AboutBox1.resx
?????文件????????401??2009-07-01?18:56??RGS\RG?Software\RG?Software\app.config
?????文件?????221184??2009-07-02?14:35??RGS\RG?Software\RG?Software\bin\Debug\RG?Software.exe
?????文件????????401??2009-07-01?18:56??RGS\RG?Software\RG?Software\bin\Debug\RG?Software.exe.config
?????文件?????126464??2009-07-02?14:35??RGS\RG?Software\RG?Software\bin\Debug\RG?Software.pdb
?????文件???????5632??2005-11-11?22:25??RGS\RG?Software\RG?Software\bin\Debug\RG?Software.vshost.exe
?????文件????????401??2009-07-01?18:56??RGS\RG?Software\RG?Software\bin\Debug\RG?Software.vshost.exe.config
?????文件?????933888??2009-07-02?14:23??RGS\RG?Software\RG?Software\bin\Debug\RG_Soft.mdb
?????文件???????5113??2009-07-01?19:29??RGS\RG?Software\RG?Software\ck.cs
?????文件???????4843??2009-07-01?19:24??RGS\RG?Software\RG?Software\ck.Designer.cs
?????文件???????5814??2009-07-01?19:24??RGS\RG?Software\RG?Software\ck.resx
?????文件????????289??2009-07-02?14:18??RGS\RG?Software\RG?Software\data.cs
?????文件???????2650??2009-07-02?14:18??RGS\RG?Software\RG?Software\Form1.cs
?????文件???????3660??2009-07-02?13:28??RGS\RG?Software\RG?Software\Form1.Designer.cs
?????文件???????5814??2009-07-02?13:28??RGS\RG?Software\RG?Software\Form1.resx
?????文件???????2877??2009-07-02?14:35??RGS\RG?Software\RG?Software\Form2.cs
?????文件???????3568??2009-07-02?14:35??RGS\RG?Software\RG?Software\Form2.Designer.cs
?????文件???????5814??2009-07-02?14:35??RGS\RG?Software\RG?Software\Form2.resx
?????文件???????3182??2009-07-02?14:29??RGS\RG?Software\RG?Software\ins.cs
?????文件???????4790??2009-07-02?14:29??RGS\RG?Software\RG?Software\ins.Designer.cs
?????文件???????5814??2009-07-02?14:29??RGS\RG?Software\RG?Software\ins.resx
?????文件???????3236??2009-07-02?14:11??RGS\RG?Software\RG?Software\Mf.cs
?????文件??????16603??2009-07-02?14:11??RGS\RG?Software\RG?Software\Mf.Designer.cs
?????文件?????177406??2009-07-02?14:11??RGS\RG?Software\RG?Software\Mf.resx
?????文件???????1340??2009-07-02?14:35??RGS\RG?Software\RG?Software\obj\Debug\RG?Software.csproj.GenerateResource.Cache
?????文件?????221184??2009-07-02?14:35??RGS\RG?Software\RG?Software\obj\Debug\RG?Software.exe
?????文件?????126464??2009-07-02?14:35??RGS\RG?Software\RG?Software\obj\Debug\RG?Software.pdb
?????文件????????180??2009-07-02?14:22??RGS\RG?Software\RG?Software\obj\Debug\RG_Software.AboutBox1.resources
............此處省略51個文件信息
- 上一篇:C#淘寶秒殺源碼
- 下一篇:基于控制臺實現的貪吃蛇
評論
共有 條評論