Beispiel #1
0
        /// <summary>
        /// Returns a collection of custom <see cref="T:System.Web.UI.WebControls.WebParts.EditorPart"/> controls that can be used to edit a <see cref="T:System.Web.UI.WebControls.WebParts.WebPart"/> control when it is in edit mode.
        /// </summary>
        /// <returns>
        /// An <see cref="T:System.Web.UI.WebControls.WebParts.EditorPartCollection"/> that contains custom <see cref="T:System.Web.UI.WebControls.WebParts.EditorPart"/> controls associated with a <see cref="T:System.Web.UI.WebControls.WebParts.WebPart"/> control.
        /// </returns>
        public override EditorPartCollection CreateEditorParts()
        {
            List<EditorPart> editors = new List<EditorPart>();
            XslEditor xsl = new XslEditor { Title = "Edit Xsl", ID = ("xslid" + ID) };
            editors.Add(xsl);

            return new EditorPartCollection(editors);
        }
        /// <summary>
        /// Returns a collection of custom <see cref="T:System.Web.UI.WebControls.WebParts.EditorPart"/> controls that can be used to edit a <see cref="T:System.Web.UI.WebControls.WebParts.WebPart"/> control when it is in edit mode.
        /// </summary>
        /// <returns>
        /// An <see cref="T:System.Web.UI.WebControls.WebParts.EditorPartCollection"/> that contains custom <see cref="T:System.Web.UI.WebControls.WebParts.EditorPart"/> controls associated with a <see cref="T:System.Web.UI.WebControls.WebParts.WebPart"/> control.
        /// </returns>
        public override EditorPartCollection CreateEditorParts()
        {
            List <EditorPart> editors = new List <EditorPart>();
            XslEditor         xsl     = new XslEditor {
                Title = "Edit Xsl", ID = ("xslid" + ID)
            };

            editors.Add(xsl);

            return(new EditorPartCollection(editors));
        }