Ejemplo n.º 1
0
        /// <summary>
        /// Tries to retrieve the resource for the provided key.
        /// </summary>
        /// <param name="key"></param>
        /// <returns>Returns the localized string or if not found the key itself.</returns>
        public static string Get(EnumStrings key)
        {
            string res = ResMgr.GetString(key.ToString());

            if (res == null)
            {
                res = key.ToString();
            }
            return(res);
        }