Esempio n. 1
0
        public static LanguageResources LoadLanaguage(string lanaguage)
        {
            LanguageResources newInstance = new LanguageResources(lanaguage);

            newInstance.InitFromLocalResource(lanaguage);
            Interlocked.Exchange <LanguageResources>(ref instance, newInstance);
            Interlocked.Exchange <string>(ref currentLanguage, lanaguage);
            return(newInstance);
        }
Esempio n. 2
0
 public static LanguageResources LoadLanaguage(string lanaguage)
 {
     LanguageResources newInstance = new LanguageResources(lanaguage);
     newInstance.InitFromLocalResource(lanaguage);
     Interlocked.Exchange<LanguageResources>(ref instance, newInstance);
     Interlocked.Exchange<string>(ref currentLanguage, lanaguage);
     return newInstance;
 }