public static bool LoadLanguageByIndex(int index) { if (index < 0 || index > languages.Count - 1) { return(false); } activeLanguage = languages[index]; return(true); }
public static bool LoadLanguageById(string id) { foreach (var language in Languages) { if (language.Id.Equals(id)) { activeLanguage = language; return(true); } } return(false); }