• 大小: 1.73MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-14
  • 语言: C#
  • 标签: C#  ASP.NET  SQL  DBA  源码  

资源简介

C#漂亮的MenuStrip和ContextMenuStrip皮肤 京华志&精华志出品 分享资源 C# ASP.NET SQL DBA 源码

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;
using CSharpWin;

namespace MenuStripDemo
{
    partial class AboutBoxCSharpWinDemo : SkinForm
    {
        #region Fileds

        private string _url = “www.csharpwin.com“;

        #endregion

        #region Constructors

        public AboutBoxCSharpWinDemo()
        {
            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;
            this.labelAuthor.Text = “作者:starts_2000  Email:starts_2000@qq.com“;
            this.linkLabelWebUrl.Text = “CS 程序员之窗“;

            InitEvents();
        }

        #endregion

        #region Properties

        [DefaultValue(“www.csharpwin.com“)]
        public string Url
        {
            get { return _url; }
            set { _url = value; }
        }

        #endregion

        #region InitEvents

        private void InitEvents()
        {
            linkLabelWebUrl.Click += delegate(object sender EventArgs e)
            {
                Process.Start(_url);
            };

            logoPictureBox.Click += delegate(object sender EventArgs e)
            {
                Process.Start(_url);
            };
        }

        #endregion

        #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 AssemblyDescripti

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-04-01 14:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\
     目录           0  2012-04-01 14:19  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\
     文件      139776  2012-04-01 14:05  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\ASP.NET1418份源码-视频-面试题集合.xls
     文件       25600  2012-03-31 12:43  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\ASP.NET资源整合发布工具2012愚人节版.exe
     文件     3543552  2010-09-16 09:56  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\DevComponents.DotNetBar2.dll
     目录           0  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\
     文件       50988  2009-12-23 21:25  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo.png
     文件        1439  2009-12-11 17:28  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo.sln
     文件       37376  2009-12-24 13:26  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo.suo
     文件        5779  2009-12-19 22:08  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\AboutBoxCSharpWinDemo.cs
     文件       13709  2009-12-19 22:08  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\AboutBoxCSharpWinDemo.Designer.cs
     文件       24372  2009-12-11 17:24  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\AboutBoxCSharpWinDemo.resx
     目录           0  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\
     目录           0  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\
     文件       20480  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\ArtTextLabel.dll
     文件       28672  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\ButtonEx.dll
     文件       69632  2009-12-24 13:03  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\MenuStripDemo.exe
     文件       46592  2009-12-24 13:03  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\MenuStripDemo.pdb
     文件        5632  2005-11-11 22:25  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\MenuStripDemo.vshost.exe
     文件       53248  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\OwnerDrawSystemMenu.dll
     文件       53248  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\SkinForm.dll
     文件       20480  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\SystemMenu.dll
     文件       32768  2009-12-24 13:02  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\ToolStripRendererEx.dll
     文件       54784  2009-12-24 13:02  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\bin\Debug\ToolStripRendererEx.pdb
     目录           0  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\dll\
     文件       20480  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\dll\ArtTextLabel.dll
     文件       28672  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\dll\ButtonEx.dll
     文件       53248  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\dll\OwnerDrawSystemMenu.dll
     文件       53248  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\dll\SkinForm.dll
     文件       20480  2009-12-11 17:23  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\dll\SystemMenu.dll
     文件        1857  2009-12-21 00:46  C#漂亮的MenuStrip和ContextMenuStrip皮肤\MenuStripDemo\MenuStripDemo\Form1.cs
............此处省略68个文件信息

评论

共有 条评论