資源簡介
按下快捷鍵播放指定音樂,將表單關閉也可在按下定義好的快捷鍵的時候播放指定音樂,新測可用,按鈕可自定義

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Linq;
using?System.Reflection;
using?System.Windows.Forms;
namespace?NotifyIcon
{
????partial?class?AboutBox1?:?Form
????{
????????public?AboutBox1()
????????{
????????????InitializeComponent();
????????????this.Text?=?String.Format(“關于?{0}?{0}“?Assemblytitle);
????????????this.labelProductName.Text?=?AssemblyProduct;
????????????this.labelVersion.Text?=?String.Format(“版本?{0}?{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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????61440??2009-12-15?20:24??bin\Debug\AxInterop.WMPLib.dll
?????文件????????665??2009-12-15?20:33??bin\Debug\config.xm
?????文件?????331776??2009-12-15?20:24??bin\Debug\Interop.WMPLib.dll
?????文件??????73728??2009-12-16?10:19??bin\Debug\NotifyIcon.exe
?????文件??????46592??2009-12-16?10:19??bin\Debug\NotifyIcon.pdb
?????文件??????14328??2009-12-16?10:19??bin\Debug\NotifyIcon.vshost.exe
?????文件????????490??2007-07-21?01:33??bin\Debug\NotifyIcon.vshost.exe.manifest
?????文件????????538??2009-12-16?10:38??bin\Debug\使用說明.txt
?????文件??????61440??2009-12-15?20:24??obj\Debug\AxInterop.WMPLib.dll
?????文件?????331776??2009-12-15?20:24??obj\Debug\Interop.WMPLib.dll
?????文件??????29561??2009-12-16?10:19??obj\Debug\NotifyIcon.AboutBox1.resources
?????文件????????953??2009-12-16?10:19??obj\Debug\NotifyIcon.csproj.FileListAbsolute.txt
?????文件????????967??2009-12-15?20:30??obj\Debug\NotifyIcon.csproj.GenerateResource.Cache
?????文件????????544??2009-12-15?20:24??obj\Debug\NotifyIcon.csproj.ResolveComReference.cache
?????文件??????73728??2009-12-16?10:19??obj\Debug\NotifyIcon.exe
?????文件??????17698??2009-12-16?10:19??obj\Debug\NotifyIcon.Form1.resources
?????文件????????180??2009-12-16?10:19??obj\Debug\NotifyIcon.Form2.resources
?????文件??????46592??2009-12-16?10:19??obj\Debug\NotifyIcon.pdb
?????文件????????180??2009-12-16?10:19??obj\Debug\NotifyIcon.Properties.Resources.resources
?????文件???????1445??2009-12-12?11:18??Properties\AssemblyInfo.cs
?????文件???????2870??2009-12-12?09:16??Properties\Resources.Designer.cs
?????文件???????5612??2009-12-12?09:16??Properties\Resources.resx
?????文件???????1095??2009-12-12?09:16??Properties\Settings.Designer.cs
?????文件????????249??2009-12-12?09:16??Properties\Settings.settings
?????文件???????5694??2008-10-22?17:49??42.ico
?????文件???????3566??2009-12-12?11:19??AboutBox1.cs
?????文件??????10538??2009-12-12?11:19??AboutBox1.Designer.cs
?????文件??????49723??2009-12-12?11:19??AboutBox1.resx
?????文件????????606??2009-12-15?19:12??config.xm
?????文件????????766??2008-10-22?17:49??exe.ico
............此處省略20個文件信息
- 上一篇:tcp、ip課程設計
- 下一篇:hex2asm反匯編工具
評論
共有 條評論