Пример #1
0
        public static string GetString(string name)
        {
            JsonLeeCMS.Control.SR loader = GetLoader();
            string str = null;

            if (loader != null)
            {
                str = loader.Resources.GetString(name, null);
            }
            return(str);
        }
Пример #2
0
 private static JsonLeeCMS.Control.SR GetLoader()
 {
     if (_loader == null)
     {
         lock (_lock)
         {
             if (_loader == null)
             {
                 _loader = new JsonLeeCMS.Control.SR();
             }
         }
     }
     return(_loader);
 }