Esempio n. 1
0
        /// <summary>
        /// 取得 DesignTimeResourceHelper 的实例,单件模式
        /// </summary>
        /// <param name="page"></param>
        /// <returns></returns>
        public static DesignTimeResourceHelper GetInstance(ISite site)
        {
            if (_helper == null)
            {
                _helper = new DesignTimeResourceHelper(site);
            }

            return(_helper);
        }
Esempio n. 2
0
        /// <summary>
        /// 取得 DesignTimeResourceHelper 的实例,单件模式
        /// </summary>
        /// <param name="page"></param>
        /// <returns></returns>
        public static DesignTimeResourceHelper GetInstance(ISite site)
        {
            if (_helper == null)
            {
                _helper = new DesignTimeResourceHelper(site);

            }

            return _helper;
        }