• 大小: 12.52MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-07-22
  • 语言: C#
  • 标签: icon  

资源简介

3000多个常用工具图标,16 32配套的相对应的图标,图标在library文件夹中

资源截图

代码片段和文件信息

// Code are under MIT License
// http://ciconlibrary.codeplex.com/license
// Copyright (c) 2014 Jonathan Magnan. All rights reserved.
// http://www.zzzportal.com
// 
// All icons are licensed under a Creative Commons Attribution 3.0 License.
// http://creativecommons.org/licenses/by/3.0/us/
// Copyright 2009-2013 FatCow Web Hosting. All rights reserved.
// http://www.fatcow.com/free-icons
using System;
using System.Web.UI;
using Z.IconLibrary;
//www.51aspx.com
namespace Z.Examples.Web
{
    public partial class Default : Page
    {
        protected void Page_Load(object sender EventArgs e)
        {
            Page.AddIconstyleSheet();

            if (!Page.IsPostBack)
            {
                uiCssClass16.CssClass = Icon.Accept.GetCssClass16(); // required web.config setup
                uiCssClass32.CssClass = Icon.Accept.GetCssClass32(); // required web.config setup

                uiUrl16.ImageUrl = Icon.Accept.GetUrl16(); // required web.config setup
                uiUrl32.ImageUrl = Icon.Accept.GetUrl32(); // required web.config setup

                uiWebResourceUrl16.ImageUrl = Icon.Accept.GetWebResourceUrl16(); // no requirement
                uiWebResourceUrl32.ImageUrl = Icon.Accept.GetWebResourceUrl32(); // no requirement

                uiIcon.DataSource = Enum.GetValues(typeof (Icon));
                uiIcon.DataBind();
            }

            uiIcon.SelectedIndexChanged += uiIcon_SelectedIndexChanged;
        }

        private void uiIcon_SelectedIndexChanged(object sender EventArgs e)
        {
            var icon = (Icon) Enum.Parse(typeof (Icon) uiIcon.SelectedValue);

            uiDynamicCssClass16.CssClass = icon.GetCssClass16();
            uiDynamicCssClass32.CssClass = icon.GetCssClass32();

            uiDynamicUrl16.ImageUrl = icon.GetUrl16();
            uiDynamicUrl32.ImageUrl = icon.GetUrl32();

            uiDynamicWebResourceUrl16.ImageUrl = icon.GetWebResourceUrl16();
            uiDynamicWebResourceUrl32.ImageUrl = icon.GetWebResourceUrl32();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.Icon.Examples.Web\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.Icon.Examples.Web\Properties\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.Icon.Examples.Web\bin\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.Icon.Examples.Web\obj\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.Icon.Examples.Web\obj\Debug\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.Icon.Examples.Web\obj\Debug\TempPE\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\ExtensionMethods\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\ExtensionMethods\Icon\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\ExtensionMethods\System.Web.Page\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\Icon16\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\Icon32\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\Properties\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\bin\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\bin\Debug\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\obj\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\obj\Debug\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\obj\Debug\TempPE\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary.Light\resources\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\ExtensionMethods\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\ExtensionMethods\Icon\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\ExtensionMethods\System.Web.Page\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\Icon16\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\Icon32\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\Properties\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\bin\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\obj\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\obj\Debug\
     目录           0  2017-10-29 02:46  CSharpIconLibrary_v1.0\Z.IconLibrary\obj\Debug\TempPE\
............此处省略7792个文件信息

评论

共有 条评论