资源简介

按下快捷键播放指定音乐,将表单关闭也可在按下定义好的快捷键的时候播放指定音乐,新测可用,按钮可自定义

资源截图

代码片段和文件信息

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.xml

     文件     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.xml

     文件        766  2008-10-22 17:49  exe.ico

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

评论

共有 条评论