コード例 #1
0
        public static bool LoadLanguageByIndex(int index)
        {
            if (index < 0 || index > languages.Count - 1)
            {
                return(false);
            }

            activeLanguage = languages[index];
            return(true);
        }
コード例 #2
0
        public static bool LoadLanguageById(string id)
        {
            foreach (var language in Languages)
            {
                if (language.Id.Equals(id))
                {
                    activeLanguage = language;
                    return(true);
                }
            }

            return(false);
        }