protected override void CreateChildControls() { ddlLists = new DropDownList(); ddlLists.Width = new Unit("100%"); if (_documentLibrary) { SPSEditorPartsTools.FillLists(ddlLists, SPBaseType.DocumentLibrary); } else { SPSEditorPartsTools.FillListsExclude(ddlLists, SPBaseType.DocumentLibrary); } ddlLists.SelectedIndexChanged += ddlLists_SelectedIndexChanged; ddlLists.AutoPostBack = true; //NavigationTools.FillWebParts(Context, ddlLists); Controls.Add(ddlLists); ddlViews = new DropDownList(); ddlViews.Width = new Unit("100%"); SPSEditorPartsTools.FillListViews(ddlViews, ddlLists.SelectedValue); Controls.Add(ddlViews); chkShowTree = new CheckBox(); chkShowTree.Text = SPSResources.GetResourceString("SPSPE_ShowTree"); Controls.Add(chkShowTree); chkSortHierarchyTree = new CheckBox(); chkSortHierarchyTree.Text = SPSResources.GetResourceString("SPSPE_SortHierarchyTree"); Controls.Add(chkSortHierarchyTree); chkShowBreadCrumb = new CheckBox(); chkShowBreadCrumb.Text = SPSResources.GetResourceString("SPSPE_ShowBreadCrumb"); Controls.Add(chkShowBreadCrumb); chkShowNewButton = new CheckBox(); chkShowNewButton.Text = SPSResources.GetResourceString("SPSPE_ShowNewButton"); Controls.Add(chkShowNewButton); chkShowActionsButton = new CheckBox(); chkShowActionsButton.Text = SPSResources.GetResourceString("SPSPE_ShowActionsButton"); Controls.Add(chkShowActionsButton); chkShowUpButton = new CheckBox(); chkShowUpButton.Text = SPSResources.GetResourceString("SPSPE_ShowUpFolderButton"); Controls.Add(chkShowUpButton); chkShowNumberOfItems = new CheckBox(); chkShowNumberOfItems.Text = SPSResources.GetResourceString("SPSPE_CountItemsInTree"); Controls.Add(chkShowNumberOfItems); }