惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
Microsoft Security Blog
Microsoft Security Blog
T
Threatpost
D
DataBreaches.Net
B
Blog RSS Feed
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
Netflix TechBlog - Medium
O
OpenAI News
Webroot Blog
Webroot Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
Google Online Security Blog
Google Online Security Blog
SecWiki News
SecWiki News
H
Help Net Security
Forbes - Security
Forbes - Security
N
News and Events Feed by Topic
aimingoo的专栏
aimingoo的专栏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
腾讯CDC
B
Blog
H
Heimdal Security Blog
博客园 - 三生石上(FineUI控件)
C
CERT Recently Published Vulnerability Notes
L
Lohrmann on Cybersecurity
G
Google Developers Blog
Scott Helme
Scott Helme
C
CXSECURITY Database RSS Feed - CXSecurity.com
罗磊的独立博客
V
Visual Studio Blog
L
LINUX DO - 热门话题
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
C
Cisco Blogs
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google DeepMind News
Google DeepMind News
S
Security Affairs
P
Privacy & Cybersecurity Law Blog
S
Secure Thoughts
V
V2EX
雷峰网
雷峰网
Security Latest
Security Latest
H
Hacker News: Front Page
TaoSecurity Blog
TaoSecurity Blog
M
MIT News - Artificial intelligence

博客园 - cncxz(虫虫)

在.NET环境下为网站增加IP过滤功能 推荐几个基于.net的cms系统 超赞的10个Windows Live Writer插件 发布ASP.NET应用程序时的10个好习惯(转) 一个基于web的pdf浏览器 ajax跨域访问代理文件下载(asp、php、asp.net) jQuery UI 1.0 已于2007-9-16日正式发布 Visual Studio插件大搜索(60+) 推荐一批基于web的开源html文本编辑器(40+) 终结IE6下背景图片闪烁问题 一个web应用程序统计在线用户列表的东东(带c#源码) 中了网络流氓www.e-jok.cn的招 使用 javascript 标记高亮关键词 Div+Css酷站一箩筐 在win2k3上使用卡巴斯基6.0 创建为ClickOnce清单签名的.pfx格式数字证书 Windows Live Messenger去广告补丁 一个阴历阳历互相转化的类(c#源码) 小发现:sql2005中的异常处理消息框可以直接使用
发布控件Express.NET.WindowsForms运行时的本地化补丁
cncxz(虫虫) · 2007-04-14 · via 博客园 - cncxz(虫虫)

    针对控件Developer.Express.NET.WindowsForms.Component.Collection.for.VS2005(v2.0.1)运行时的本地化补丁。

主要实现了以下11个程序集的本地化(目前只有简体中文包):

DevExpress.Utils3, Version=3.1.0.0,  PublicKeyToken=79868b8147b5eae4
DevExpress.XtraBars3, Version=3.6.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraEditors3, Version=3.1.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraGrid3, Version=3.1.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraNavBar3, Version=2.6.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraPivotGrid3, Version=1.1.0.0,PublicKeyToken=79868b8147b5eae4
DevExpress.XtraPrinting3, Version=1.11.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraReports3, Version=1.11.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraScheduler3, Version=1.0.0.0,  PublicKeyToken=79868b8147b5eae4
DevExpress.XtraTreeList3, Version=1.10.0.0,  PublicKeyToken=79868b8147b5eae4
DevExpress.XtraVerticalGrid3, Version=1.5.0.0, PublicKeyToken=79868b8147b5eae4

=========================================

使用说明

-------------------------------

1、在相应工程中添加DevExpress.RuntimeLocalizer.dll程序集引用

2、在 应用程序的主入口点函数中调用 LocalizerHelper类的相关方法实现运行时的本地化,例如

    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //可以在这里设置控件本地化代码 
         
            Application.Run(new Form1());
        }
    }

*LocalizerHelper类介绍:

该类位于DevExpress.RuntimeLocalizer命名空间(编写代码时注意导入)下,核心方法有以下四个:
     
        /// <summary>
        /// 为指定的单个或多个dll应用本地化资源
        /// </summary>
        /// <param name="assemblys">指定的dll枚举(多个可用位或操作)</param>
        /// <param name="showErrMsgBox">是否显示错误提示</param>
        public static void Apply(RuntimeAssembly assemblys, bool showErrMsgBox)


        /// <summary>
        /// 为指定的单个或多个dll应用本地化资源
        /// </summary>
        /// <param name="assemblys">指定的dll枚举(多个可用异或操作)</param>
        public static void Apply(RuntimeAssembly assemblys)


        /// <summary>
        /// 为所有的dll应用本地化资源
        /// </summary>
        /// <param name="showErrMsgBox">是否显示错误提示</param>
        public static void ApplyAll(bool showErrMsgBox)


        /// <summary>
        /// 为所有的dll应用本地化资源
        /// </summary>
        public static void ApplyAll()

程序发布时建议使用Apply(RuntimeAssembly assemblys)方法,用到了哪些dll就本地化哪些dll,为DevExpress.Utils3.dll、DevExpress.XtraBars3.dll和DevExpress.XtraEditors3.dll三个程序集应用本地化资源的代码如下:

LocalizerHelper.Apply((RuntimeAssembly.DevExpressUtils | RuntimeAssembly.XtraBars | RuntimeAssembly.XtraEditors));

测试时建议使用ApplyAll(bool showErrMsgBox)方法,代码如下:

LocalizerHelper.ApplyAll(true);//显示错误提示


==========================

其他

----------------------------

本汉化补丁代码由cncxz(虫虫)编写,简体中文翻译由cncxz(虫虫)、fansun(风行) 合作完成。

下载地址:https://files.cnblogs.com/cncxz/DevExpress.RuntimeLocalizer.0.5.rar