C#:在其它dll中调用此文件中的资源

mac2022-06-30  22

如设置当前语言上下文:

AppDomain.CurrentDomain.UnhandledException +=CurrentDomainUnhandledException;

 

If(System.Configuration.ConfigurationManager.AppSettings[“Languange”] != null)

{

         Resources.Culture = new CultureInfo(System.Configuration.ConfigurationManager.AppSettings[“Languange”] )

}

Common.Properties.Resources.Culture = Resources.Culture;

 

转载于:https://www.cnblogs.com/shenchao/archive/2013/03/26/2981988.html

相关资源:WPF引用Dll中资源字典文件,修改按钮样式
最新回复(0)