private void InitBuildingInfluences() { foreach (BuildingInfluenceType curInfluenceType in Enum.GetValues(typeof(BuildingInfluenceType))) { BuildingInfluences.Add(new BuildingInfluence { Name = _localizationHelper.GetLocalization(curInfluenceType.ToString()), Type = curInfluenceType }); } }
private void InitBuildingInfluences() { foreach (BuildingInfluenceType curInfluenceType in Enum.GetValues(typeof(BuildingInfluenceType))) { BuildingInfluences.Add(new BuildingInfluence { Name = Localization.Localization.Translations[curInfluenceType.ToString()], Type = curInfluenceType }); } }
private void InitBuildingInfluences() { string language = Localization.Localization.GetLanguageCodeFromName(_commons.SelectedLanguage); foreach (BuildingInfluenceType curInfluenceType in Enum.GetValues(typeof(BuildingInfluenceType))) { BuildingInfluences.Add(new BuildingInfluence { Name = Localization.Localization.Translations[language][curInfluenceType.ToString()], Type = curInfluenceType }); } }