資源簡介
C# winforms 學生考試管理系統(tǒng)
QQ:292258449

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Windows.Forms;
using?System.Reflection;
namespace?Exam
{
????partial?class?AboutBox1?:?Form
????{
????????public?AboutBox1()
????????{
????????????InitializeComponent();
????????????//??初始化?AboutBox?以顯示程序集信息中包含的產(chǎn)品信息。
????????????//??也可以通過以下方法更改應用程序的程序集信息設置:
????????????//??-?項目->屬性->應用程序->程序集信息
????????????//??-?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]).Product;
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5443??2010-07-08?12:05??Exam\Exam\AboutBox1.cs
?????文件??????10610??2010-07-08?12:05??Exam\Exam\AboutBox1.Designer.cs
?????文件??????49720??2010-07-08?12:05??Exam\Exam\AboutBox1.resx
?????文件???????2368??2010-07-08?16:34??Exam\Exam\ba
?????文件????1835008??2010-07-08?16:35??Exam\Exam\bin\Debug\db_Exam_Data.MDF
?????文件?????516096??2010-07-08?16:35??Exam\Exam\bin\Debug\db_Exam_Data_log.ldf
?????文件????1048576??2010-07-08?16:30??Exam\Exam\bin\Debug\db_Exam_Log.LDF
?????文件????1020928??2010-07-08?16:34??Exam\Exam\bin\Debug\Exam.exe
?????文件????????409??2010-07-08?16:34??Exam\Exam\bin\Debug\Exam.exe.config
?????文件?????192000??2010-07-08?16:34??Exam\Exam\bin\Debug\Exam.pdb
?????文件??????14328??2010-07-08?16:35??Exam\Exam\bin\Debug\Exam.vshost.exe
?????文件????????409??2010-07-08?16:34??Exam\Exam\bin\Debug\Exam.vshost.exe.config
?????文件???????1537??2010-07-08?15:36??Exam\Exam\Com.cs
?????文件????1835008??2010-07-08?16:30??Exam\Exam\Databa
?????文件????1048576??2010-07-08?16:30??Exam\Exam\Databa
?????文件???????8652??2010-07-08?16:34??Exam\Exam\Exam.csproj
?????文件???????3005??2008-08-08?15:51??Exam\Exam\frmAdminAddJudgeExam.cs
?????文件???????5474??2008-08-08?15:01??Exam\Exam\frmAdminAddJudgeExam.Designer.cs
?????文件???????5814??2008-08-08?15:01??Exam\Exam\frmAdminAddJudgeExam.resx
?????文件???????3582??2008-08-08?15:43??Exam\Exam\frmAdminAddSelectExam.cs
?????文件??????11074??2008-08-08?14:53??Exam\Exam\frmAdminAddSelectExam.Designer.cs
?????文件???????5814??2008-08-08?14:53??Exam\Exam\frmAdminAddSelectExam.resx
?????文件??????14514??2010-07-08?15:50??Exam\Exam\frmAdminExamSet.cs
?????文件??????16017??2010-07-08?12:27??Exam\Exam\frmAdminExamSet.Designer.cs
?????文件???????5814??2010-07-08?12:27??Exam\Exam\frmAdminExamSet.resx
?????文件???????2327??2008-08-08?15:52??Exam\Exam\frmAdminFillExam.cs
?????文件???????5243??2008-08-08?14:54??Exam\Exam\frmAdminFillExam.Designer.cs
?????文件???????5814??2008-08-08?14:54??Exam\Exam\frmAdminFillExam.resx
?????文件???????3087??2008-08-02?17:09??Exam\Exam\frmAdminFindScore.cs
?????文件???????7723??2008-08-02?17:09??Exam\Exam\frmAdminFindScore.Designer.cs
............此處省略72個文件信息
評論
共有 條評論