示例#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));
        }
        /// <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));
        }