예제 #1
0
        string GetbyLang(DicItem dicItem)
        {
            switch (Language)
            {
            case Languages.Turkce:
                return(dicItem.Tr);

            case Languages.English:
                return(dicItem.En);

            default:
                return(dicItem.Tr);
            }
        }
예제 #2
0
        public string Get(int Id)
        {
            if (DicItemList == null || DicItemList.Count == 0)
            {
                return("");
            }

            DicItem item = DicItemList.Where(x => x.Id == Id).FirstOrDefault();

            if (item == null)
            {
                return("");
            }

            return(GetbyLang(item));
        }
예제 #3
0
        public string Get(string xKey, params string[] param)
        {
            if (DicItemList == null || DicItemList.Count == 0)
            {
                return(xKey);
            }

            DicItem item = DicItemList.Where(x => x.Key == xKey).FirstOrDefault();

            if (item == null)
            {
                return(xKey);
            }

            return(GetbyLang(item));
        }