コード例 #1
0
ファイル: CultureManager.cs プロジェクト: lovebanyi/dnSpy
        CultureManager(CultureSettingsImpl cultureSettings)
        {
            this.cultureSettings = cultureSettings;

            var cultureInfo = UICulture;
            if (cultureInfo != null)
                Thread.CurrentThread.CurrentUICulture = cultureInfo;
            // Make sure its static ctor gets called so it can initialize its fields
            var u = AppCulture.UICulture;
            Debug.Assert(Thread.CurrentThread.CurrentUICulture.Equals(u));
        }
コード例 #2
0
        CultureManager(CultureSettingsImpl cultureSettings)
        {
            this.cultureSettings = cultureSettings;

            var cultureInfo = UICulture;

            if (cultureInfo != null)
            {
                Thread.CurrentThread.CurrentUICulture = cultureInfo;
            }
            // Make sure its static ctor gets called so it can initialize its fields
            var u = AppCulture.UICulture;

            Debug.Assert(Thread.CurrentThread.CurrentUICulture.Equals(u));
        }
コード例 #3
0
 CultureService(CultureSettingsImpl cultureSettings)
 {
     this.cultureSettings = cultureSettings;
     InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture);
 }
コード例 #4
0
ファイル: CultureManager.cs プロジェクト: n017/dnSpy
 CultureManager(CultureSettingsImpl cultureSettings)
 {
     this.cultureSettings = cultureSettings;
     InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture);
 }