protected override void CreateChildControls() { ddlWebparts = new DropDownList(); ddlWebparts.Width = new Unit("100%"); SPSEditorPartsTools.FillWebParts(Context, ddlWebparts); ddlWebparts.SelectedIndexChanged += ddlWebParts_SelectedIndexChanged; ddlWebparts.AutoPostBack = true; Controls.Add(ddlWebparts); txtMaxLevels = new TextBox(); txtMaxLevels.Width = new Unit("100%"); txtMaxLevels.Text = string.Empty; Controls.Add(txtMaxLevels); chkNavigateToList = new CheckBox(); chkNavigateToList.Text = SPSResources.GetResourceString("SPSPE_NavigateToList"); chkNavigateToList.Checked = false; chkNavigateToList.CheckedChanged += chkNavigateToList_CheckedChanged; chkNavigateToList.AutoPostBack = true; Controls.Add(chkNavigateToList); ddlListViews = new DropDownList(); ddlListViews.Width = new Unit("100%"); Controls.Add(ddlListViews); }
protected override void CreateChildControls() { ddlWebparts = new DropDownList(); ddlWebparts.Width = new Unit("100%"); SPSEditorPartsTools.FillWebParts(Context, ddlWebparts); ddlWebparts.SelectedIndexChanged += ddlWebParts_SelectedIndexChanged; ddlWebparts.AutoPostBack = true; Controls.Add(ddlWebparts); txtFilter = new TextBox(); txtFilter.Width = new Unit("100%"); Controls.Add(txtFilter); chkFollowListView = new CheckBox(); chkFollowListView.Text = SPSResources.GetResourceString("SPSPE_FollowListView"); chkFollowListView.Checked = false; chkFollowListView.AutoPostBack = true; chkFollowListView.CheckedChanged += chkFollowListView_CheckedChanged; chkFollowListView.ToolTip = SPSResources.GetResourceString("SPSPE_FollowListViewTip"); Controls.Add(chkFollowListView); chkNavigateToList = new CheckBox(); chkNavigateToList.Text = SPSResources.GetResourceString("SPSPE_NavigateToList"); chkNavigateToList.Checked = false; chkNavigateToList.AutoPostBack = true; chkNavigateToList.CheckedChanged += chkNavigateToList_CheckedChanged; chkNavigateToList.ToolTip = SPSResources.GetResourceString("SPSPE_NavigateToListTip"); Controls.Add(chkNavigateToList); chkSortHierarchy = new CheckBox(); chkSortHierarchy.Text = SPSResources.GetResourceString("SPSPE_SortHierarchy"); chkSortHierarchy.Checked = false; chkSortHierarchy.AutoPostBack = true; chkSortHierarchy.ToolTip = SPSResources.GetResourceString("SPSPE_SortHierarchyTip"); Controls.Add(chkSortHierarchy); ddlListViews = new DropDownList(); ddlListViews.Width = new Unit("100%"); Controls.Add(ddlListViews); chkShowCounter = new CheckBox(); chkShowCounter.Text = SPSResources.GetResourceString("SPSPE_ShowFileCounter"); chkShowCounter.Checked = false; chkShowCounter.ToolTip = SPSResources.GetResourceString("SPSPR_ShowFileCounterTip"); Controls.Add(chkShowCounter); txtExpandDepth = new TextBox(); txtExpandDepth.Width = new Unit("100%"); Controls.Add(txtExpandDepth); chkHideStartUnder = new CheckBox(); chkHideStartUnder.Text = SPSResources.GetResourceString("SPSPE_HideUnderScoreFolders"); chkHideStartUnder.Checked = false; chkHideStartUnder.ToolTip = SPSResources.GetResourceString("SPSPE_HideUnderScoreFoldersTip"); Controls.Add(chkHideStartUnder); }