定制本地化
Contents
[
Hide
]
如果我们需要对GridDesktop中的所有菜单/消息提示等进行本地化,我们可以定义资源文件,并使用GridDesktop.SetCustomResourceManager来加载该资源。
例子
首先添加一个新的资源文件:customtest.resx
//suppose your application with name space: myapp
ResourceManager rm = new ResourceManager("myapp.customtest", Assembly.GetExecutingAssembly());
gridDesktop1.SetCustomResourceManager(rm);
执行上述代码后,菜单项显示: