Esempio n. 1
0
 public void switchLanguageTo(ELanguage lang)
 {
     CurrentLanguage = languageList.FirstOrDefault(l => l.Language == lang);
     cultureInfo     = CultureInfo.CreateSpecificCulture(CurrentLanguage.Code);
 }
Esempio n. 2
0
 public LanguageService(Assembly assembly)
 {
     CurrentLanguage = languageList[0];
     resourceManager = new ResourceManager("DataLogger.Resources.Res", assembly);
     cultureInfo     = CultureInfo.CreateSpecificCulture(CurrentLanguage.Code);
 }