コード例 #1
0
        public override EditorPartCollection CreateEditorParts()
        {
            IWebEditable childControl = this.ChildControl as IWebEditable;

            if (childControl != null)
            {
                return(new EditorPartCollection(base.CreateEditorParts(), childControl.CreateEditorParts()));
            }
            return(base.CreateEditorParts());
        }
コード例 #2
0
ファイル: GenericWebPart.cs プロジェクト: dox0/DotNet471RS3
        public override EditorPartCollection CreateEditorParts()
        {
            IWebEditable webEditableChildControl = ChildControl as IWebEditable;

            if (webEditableChildControl != null)
            {
                return(new EditorPartCollection(base.CreateEditorParts(), webEditableChildControl.CreateEditorParts()));
            }
            else
            {
                return(base.CreateEditorParts());
            }
        }