public string ChooseValueForCurrentLang(MyEnums.UILabelType _uiLabelType)
        {
            string ret = "";
            //string lang = string.IsNullOrEmpty(CoreLib.GlobalMethods.UILang) ? "en" : CoreLib.GlobalMethods.UILang;
            UILabelLang lblLang = Langs.Where(x => x.UILabelType == _uiLabelType).FirstOrDefault();

            ret = lblLang.Lang;
            return(ret);
        }
Example #2
0
        /// <summary>
        /// Returns collection of languages which visibility is true.
        /// </summary>
        /// <returns></returns>
        public Lang[] GetLangs()
        {
            var list = Langs.Where(l => l.Visible).Select(l => l).ToList();

            return(list.ToArray());
        }