Exemple #1
0
        /// <summary>
        /// 获取客户端脚本控件所需脚本资源引用集合
        /// Gets the script references for this control
        /// </summary>
        /// <returns>脚本资源引用集合</returns>
        protected virtual IEnumerable <ScriptReference> GetScriptReferences()
        {
            if (!IsRenderScript)
            {
                return(null);
            }

            return(ScriptControlHelper.GetScriptReferences(this.GetType(), this.ScriptPath));
        }
Exemple #2
0
        /// <summary>
        /// Gets the script references for this control
        /// </summary>
        /// <returns></returns>
        protected override IEnumerable <ScriptReference> GetScriptReferences()
        {
            //if (!Visible || ReadOnly) return null;
            if (!Visible)
            {
                return(null);
            }

            return(ScriptControlHelper.GetScriptReferences(this.GetType(), this.ScriptPath));
        }