From 9b363aa847a7f2ffec8626da9800ab85d5392a23 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 13 May 2020 12:28:53 +0000 Subject: [PATCH] =?UTF-8?q?C2020-010:=20=20=20For=20search:=20=E2=80=98Acc?= =?UTF-8?q?essory=20Sections=E2=80=99=20to=20=E2=80=98Word=20Sections?= =?UTF-8?q?=E2=80=99=20and=20disable=20Word=20Sections=20for=20Transition?= =?UTF-8?q?=20Searches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DisplaySearch.Designer.cs | 290 +++++++++--------- .../Volian.Controls.Library/DisplaySearch.cs | 18 +- 2 files changed, 157 insertions(+), 151 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs index 9173e078..20983f17 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs @@ -69,6 +69,15 @@ namespace Volian.Controls.Library this.cbxFndUnLnkROVals = new DevComponents.DotNetBar.Controls.CheckBoxX(); this.cmboTreeROs = new DevComponents.DotNetBar.Controls.ComboTree(); this.tabROSearch = new DevComponents.DotNetBar.TabItem(this.components); + this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel(); + this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.cbxBooleanAnoTxtSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cbxCaseSensitiveAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cbxTextSearchAnnotation = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.label2 = new System.Windows.Forms.Label(); + this.cbxAnnoTypes = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.tabAnnotationSearch = new DevComponents.DotNetBar.TabItem(this.components); this.tabControlPanel5 = new DevComponents.DotNetBar.TabControlPanel(); this.pnlTranCategory = new System.Windows.Forms.Panel(); this.cbxTranCategory = new DevComponents.DotNetBar.Controls.ComboBoxEx(); @@ -80,15 +89,6 @@ namespace Volian.Controls.Library this.cbxTranVersion = new DevComponents.DotNetBar.Controls.ComboBoxEx(); this.lblTranVersion = new System.Windows.Forms.Label(); this.tabTranSearch = new DevComponents.DotNetBar.TabItem(this.components); - this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel(); - this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.cbxBooleanAnoTxtSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cbxCaseSensitiveAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cbxTextSearchAnnotation = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label2 = new System.Windows.Forms.Label(); - this.cbxAnnoTypes = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.tabAnnotationSearch = new DevComponents.DotNetBar.TabItem(this.components); this.contextMenuBar1 = new DevComponents.DotNetBar.ContextMenuBar(); this.btnCMIFindText = new DevComponents.DotNetBar.ButtonItem(); this.btnCMEdit = new DevComponents.DotNetBar.ButtonItem(); @@ -145,13 +145,13 @@ namespace Volian.Controls.Library this.panel3.SuspendLayout(); this.tabControlPanel2.SuspendLayout(); this.gpFindROs.SuspendLayout(); + this.tabControlPanel3.SuspendLayout(); + this.gpSrchAnnoText.SuspendLayout(); + this.panel4.SuspendLayout(); this.tabControlPanel5.SuspendLayout(); this.pnlTranCategory.SuspendLayout(); this.pnlTranFormat.SuspendLayout(); this.pnlTranVersion.SuspendLayout(); - this.tabControlPanel3.SuspendLayout(); - this.gpSrchAnnoText.SuspendLayout(); - this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).BeginInit(); @@ -166,10 +166,10 @@ namespace Volian.Controls.Library this.tabSearchTypes.CanReorderTabs = false; this.tabSearchTypes.CloseButtonOnTabsAlwaysDisplayed = false; this.tabSearchTypes.CloseButtonPosition = DevComponents.DotNetBar.eTabCloseButtonPosition.Right; - this.tabSearchTypes.Controls.Add(this.tabControlPanel3); this.tabSearchTypes.Controls.Add(this.tabControlPanel4); - this.tabSearchTypes.Controls.Add(this.tabControlPanel5); this.tabSearchTypes.Controls.Add(this.tabControlPanel2); + this.tabSearchTypes.Controls.Add(this.tabControlPanel3); + this.tabSearchTypes.Controls.Add(this.tabControlPanel5); this.tabSearchTypes.Controls.Add(this.contextMenuBar1); this.tabSearchTypes.Dock = System.Windows.Forms.DockStyle.Top; this.tabSearchTypes.Location = new System.Drawing.Point(0, 0); @@ -560,133 +560,6 @@ namespace Volian.Controls.Library this.tabROSearch.Name = "tabROSearch"; this.tabROSearch.Text = "Referenced Objects"; // - // tabControlPanel5 - // - this.tabControlPanel5.Controls.Add(this.pnlTranCategory); - this.tabControlPanel5.Controls.Add(this.pnlTranFormat); - this.tabControlPanel5.Controls.Add(this.pnlTranVersion); - this.tabControlPanel5.DisabledBackColor = System.Drawing.Color.Empty; - this.tabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControlPanel5.Location = new System.Drawing.Point(0, 24); - this.tabControlPanel5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.tabControlPanel5.Name = "tabControlPanel5"; - this.tabControlPanel5.Padding = new System.Windows.Forms.Padding(1); - this.tabControlPanel5.Size = new System.Drawing.Size(369, 114); - this.tabControlPanel5.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tabControlPanel5.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tabControlPanel5.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tabControlPanel5.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel5.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tabControlPanel5.Style.GradientAngle = 90; - this.tabControlPanel5.TabIndex = 5; - this.tabControlPanel5.TabItem = this.tabTranSearch; - // - // pnlTranCategory - // - this.pnlTranCategory.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pnlTranCategory.Controls.Add(this.cbxTranCategory); - this.pnlTranCategory.Controls.Add(this.lblTranCategory); - this.pnlTranCategory.Dock = System.Windows.Forms.DockStyle.Top; - this.pnlTranCategory.Location = new System.Drawing.Point(1, 51); - this.pnlTranCategory.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.pnlTranCategory.Name = "pnlTranCategory"; - this.pnlTranCategory.Padding = new System.Windows.Forms.Padding(1); - this.pnlTranCategory.Size = new System.Drawing.Size(367, 25); - this.pnlTranCategory.TabIndex = 2; - // - // cbxTranCategory - // - this.cbxTranCategory.Dock = System.Windows.Forms.DockStyle.Fill; - this.cbxTranCategory.Location = new System.Drawing.Point(76, 1); - this.cbxTranCategory.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.cbxTranCategory.Name = "cbxTranCategory"; - this.cbxTranCategory.Size = new System.Drawing.Size(288, 24); - this.cbxTranCategory.TabIndex = 1; - this.cbxTranCategory.WatermarkText = "Select Cateogry of Transitions"; - // - // lblTranCategory - // - this.lblTranCategory.Dock = System.Windows.Forms.DockStyle.Left; - this.lblTranCategory.Location = new System.Drawing.Point(1, 1); - this.lblTranCategory.Name = "lblTranCategory"; - this.lblTranCategory.Size = new System.Drawing.Size(75, 21); - this.lblTranCategory.TabIndex = 0; - this.lblTranCategory.Text = "Category"; - this.lblTranCategory.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // pnlTranFormat - // - this.pnlTranFormat.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pnlTranFormat.Controls.Add(this.cbxTranFormat); - this.pnlTranFormat.Controls.Add(this.lblTranFormat); - this.pnlTranFormat.Dock = System.Windows.Forms.DockStyle.Top; - this.pnlTranFormat.Location = new System.Drawing.Point(1, 26); - this.pnlTranFormat.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.pnlTranFormat.Name = "pnlTranFormat"; - this.pnlTranFormat.Padding = new System.Windows.Forms.Padding(1); - this.pnlTranFormat.Size = new System.Drawing.Size(367, 25); - this.pnlTranFormat.TabIndex = 1; - // - // cbxTranFormat - // - this.cbxTranFormat.Dock = System.Windows.Forms.DockStyle.Fill; - this.cbxTranFormat.Location = new System.Drawing.Point(76, 1); - this.cbxTranFormat.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.cbxTranFormat.Name = "cbxTranFormat"; - this.cbxTranFormat.Size = new System.Drawing.Size(288, 24); - this.cbxTranFormat.TabIndex = 1; - this.cbxTranFormat.WatermarkText = "Select Style of Transitions"; - // - // lblTranFormat - // - this.lblTranFormat.Dock = System.Windows.Forms.DockStyle.Left; - this.lblTranFormat.Location = new System.Drawing.Point(1, 1); - this.lblTranFormat.Name = "lblTranFormat"; - this.lblTranFormat.Size = new System.Drawing.Size(75, 21); - this.lblTranFormat.TabIndex = 0; - this.lblTranFormat.Text = "Style"; - this.lblTranFormat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // pnlTranVersion - // - this.pnlTranVersion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pnlTranVersion.Controls.Add(this.cbxTranVersion); - this.pnlTranVersion.Controls.Add(this.lblTranVersion); - this.pnlTranVersion.Dock = System.Windows.Forms.DockStyle.Top; - this.pnlTranVersion.Location = new System.Drawing.Point(1, 1); - this.pnlTranVersion.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.pnlTranVersion.Name = "pnlTranVersion"; - this.pnlTranVersion.Padding = new System.Windows.Forms.Padding(1); - this.pnlTranVersion.Size = new System.Drawing.Size(367, 25); - this.pnlTranVersion.TabIndex = 0; - // - // cbxTranVersion - // - this.cbxTranVersion.Dock = System.Windows.Forms.DockStyle.Fill; - this.cbxTranVersion.Location = new System.Drawing.Point(69, 1); - this.cbxTranVersion.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.cbxTranVersion.Name = "cbxTranVersion"; - this.cbxTranVersion.Size = new System.Drawing.Size(295, 24); - this.cbxTranVersion.TabIndex = 1; - this.cbxTranVersion.WatermarkText = "Select Format for Transitions"; - // - // lblTranVersion - // - this.lblTranVersion.Dock = System.Windows.Forms.DockStyle.Left; - this.lblTranVersion.Location = new System.Drawing.Point(1, 1); - this.lblTranVersion.Name = "lblTranVersion"; - this.lblTranVersion.Size = new System.Drawing.Size(68, 21); - this.lblTranVersion.TabIndex = 0; - this.lblTranVersion.Text = "Formats"; - this.lblTranVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // tabTranSearch - // - this.tabTranSearch.AttachedControl = this.tabControlPanel5; - this.tabTranSearch.Name = "tabTranSearch"; - this.tabTranSearch.Text = "Transitions"; - // // tabControlPanel3 // this.tabControlPanel3.Controls.Add(this.gpSrchAnnoText); @@ -860,6 +733,133 @@ namespace Volian.Controls.Library this.tabAnnotationSearch.Text = "Annotations"; this.tabAnnotationSearch.Click += new System.EventHandler(this.tabAnnotationSearch_Click); // + // tabControlPanel5 + // + this.tabControlPanel5.Controls.Add(this.pnlTranCategory); + this.tabControlPanel5.Controls.Add(this.pnlTranFormat); + this.tabControlPanel5.Controls.Add(this.pnlTranVersion); + this.tabControlPanel5.DisabledBackColor = System.Drawing.Color.Empty; + this.tabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControlPanel5.Location = new System.Drawing.Point(0, 24); + this.tabControlPanel5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.tabControlPanel5.Name = "tabControlPanel5"; + this.tabControlPanel5.Padding = new System.Windows.Forms.Padding(1); + this.tabControlPanel5.Size = new System.Drawing.Size(369, 114); + this.tabControlPanel5.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tabControlPanel5.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tabControlPanel5.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tabControlPanel5.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tabControlPanel5.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel5.Style.GradientAngle = 90; + this.tabControlPanel5.TabIndex = 5; + this.tabControlPanel5.TabItem = this.tabTranSearch; + // + // pnlTranCategory + // + this.pnlTranCategory.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pnlTranCategory.Controls.Add(this.cbxTranCategory); + this.pnlTranCategory.Controls.Add(this.lblTranCategory); + this.pnlTranCategory.Dock = System.Windows.Forms.DockStyle.Top; + this.pnlTranCategory.Location = new System.Drawing.Point(1, 51); + this.pnlTranCategory.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.pnlTranCategory.Name = "pnlTranCategory"; + this.pnlTranCategory.Padding = new System.Windows.Forms.Padding(1); + this.pnlTranCategory.Size = new System.Drawing.Size(367, 25); + this.pnlTranCategory.TabIndex = 2; + // + // cbxTranCategory + // + this.cbxTranCategory.Dock = System.Windows.Forms.DockStyle.Fill; + this.cbxTranCategory.Location = new System.Drawing.Point(76, 1); + this.cbxTranCategory.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxTranCategory.Name = "cbxTranCategory"; + this.cbxTranCategory.Size = new System.Drawing.Size(288, 24); + this.cbxTranCategory.TabIndex = 1; + this.cbxTranCategory.WatermarkText = "Select Cateogry of Transitions"; + // + // lblTranCategory + // + this.lblTranCategory.Dock = System.Windows.Forms.DockStyle.Left; + this.lblTranCategory.Location = new System.Drawing.Point(1, 1); + this.lblTranCategory.Name = "lblTranCategory"; + this.lblTranCategory.Size = new System.Drawing.Size(75, 21); + this.lblTranCategory.TabIndex = 0; + this.lblTranCategory.Text = "Category"; + this.lblTranCategory.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // pnlTranFormat + // + this.pnlTranFormat.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pnlTranFormat.Controls.Add(this.cbxTranFormat); + this.pnlTranFormat.Controls.Add(this.lblTranFormat); + this.pnlTranFormat.Dock = System.Windows.Forms.DockStyle.Top; + this.pnlTranFormat.Location = new System.Drawing.Point(1, 26); + this.pnlTranFormat.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.pnlTranFormat.Name = "pnlTranFormat"; + this.pnlTranFormat.Padding = new System.Windows.Forms.Padding(1); + this.pnlTranFormat.Size = new System.Drawing.Size(367, 25); + this.pnlTranFormat.TabIndex = 1; + // + // cbxTranFormat + // + this.cbxTranFormat.Dock = System.Windows.Forms.DockStyle.Fill; + this.cbxTranFormat.Location = new System.Drawing.Point(76, 1); + this.cbxTranFormat.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxTranFormat.Name = "cbxTranFormat"; + this.cbxTranFormat.Size = new System.Drawing.Size(288, 24); + this.cbxTranFormat.TabIndex = 1; + this.cbxTranFormat.WatermarkText = "Select Style of Transitions"; + // + // lblTranFormat + // + this.lblTranFormat.Dock = System.Windows.Forms.DockStyle.Left; + this.lblTranFormat.Location = new System.Drawing.Point(1, 1); + this.lblTranFormat.Name = "lblTranFormat"; + this.lblTranFormat.Size = new System.Drawing.Size(75, 21); + this.lblTranFormat.TabIndex = 0; + this.lblTranFormat.Text = "Style"; + this.lblTranFormat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // pnlTranVersion + // + this.pnlTranVersion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pnlTranVersion.Controls.Add(this.cbxTranVersion); + this.pnlTranVersion.Controls.Add(this.lblTranVersion); + this.pnlTranVersion.Dock = System.Windows.Forms.DockStyle.Top; + this.pnlTranVersion.Location = new System.Drawing.Point(1, 1); + this.pnlTranVersion.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.pnlTranVersion.Name = "pnlTranVersion"; + this.pnlTranVersion.Padding = new System.Windows.Forms.Padding(1); + this.pnlTranVersion.Size = new System.Drawing.Size(367, 25); + this.pnlTranVersion.TabIndex = 0; + // + // cbxTranVersion + // + this.cbxTranVersion.Dock = System.Windows.Forms.DockStyle.Fill; + this.cbxTranVersion.Location = new System.Drawing.Point(69, 1); + this.cbxTranVersion.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxTranVersion.Name = "cbxTranVersion"; + this.cbxTranVersion.Size = new System.Drawing.Size(295, 24); + this.cbxTranVersion.TabIndex = 1; + this.cbxTranVersion.WatermarkText = "Select Format for Transitions"; + // + // lblTranVersion + // + this.lblTranVersion.Dock = System.Windows.Forms.DockStyle.Left; + this.lblTranVersion.Location = new System.Drawing.Point(1, 1); + this.lblTranVersion.Name = "lblTranVersion"; + this.lblTranVersion.Size = new System.Drawing.Size(68, 21); + this.lblTranVersion.TabIndex = 0; + this.lblTranVersion.Text = "Formats"; + this.lblTranVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // tabTranSearch + // + this.tabTranSearch.AttachedControl = this.tabControlPanel5; + this.tabTranSearch.Name = "tabTranSearch"; + this.tabTranSearch.Text = "Transitions"; + // // contextMenuBar1 // this.contextMenuBar1.DockSide = DevComponents.DotNetBar.eDockSide.Top; @@ -1488,15 +1488,15 @@ namespace Volian.Controls.Library this.panel3.ResumeLayout(false); this.tabControlPanel2.ResumeLayout(false); this.gpFindROs.ResumeLayout(false); - this.tabControlPanel5.ResumeLayout(false); - this.pnlTranCategory.ResumeLayout(false); - this.pnlTranFormat.ResumeLayout(false); - this.pnlTranVersion.ResumeLayout(false); this.tabControlPanel3.ResumeLayout(false); this.tabControlPanel3.PerformLayout(); this.gpSrchAnnoText.ResumeLayout(false); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); + this.tabControlPanel5.ResumeLayout(false); + this.pnlTranCategory.ResumeLayout(false); + this.pnlTranFormat.ResumeLayout(false); + this.pnlTranVersion.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).EndInit(); diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.cs b/PROMS/Volian.Controls.Library/DisplaySearch.cs index 85a9bff3..c309e023 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.cs @@ -164,6 +164,7 @@ namespace Volian.Controls.Library void tabSearchTypes_SelectedTabChanged(object sender, TabStripTabChangedEventArgs e) { + wordSectionTreeNode.Enabled = true; btnSearch.Enabled = true; if (e.NewTab == tabROSearch) { @@ -171,6 +172,8 @@ namespace Volian.Controls.Library } else if (e.NewTab == tabTranSearch) { + wordSectionTreeNode.Enabled = false; // C2020-010: Disable Word Section choice for Transition search + wordSectionTreeNode.Checked = false; btnSearch.Enabled = (cbxTranCategory.Items.Count > 0); // B2017-038 disable search button if no format selected //enable-disable doc version nodes based on version type if selected if (cbxTranVersion.SelectedIndex > -1) @@ -408,6 +411,7 @@ namespace Volian.Controls.Library { TmrRefresh.Enabled = true; } + DevComponents.AdvTree.Node wordSectionTreeNode = null; // C2020-010: Disable Word Section choice for Transition search public void AdvTreeStepTypesFillIn() { DevComponents.AdvTree.Node topnode = new DevComponents.AdvTree.Node(); @@ -433,15 +437,17 @@ namespace Volian.Controls.Library { DevComponents.AdvTree.Node newnode; advTreeStepTypes.Nodes.Clear(); - // Add a dummy node for searching Accessory Sections (MS Word sections) + // Add a dummy node for searching Word Sections (MS Word sections) //newnode = new DevComponents.AdvTree.Node(); - //newnode.Text = "Accessory Sections"; + //newnode.Text = "Word Sections"; //newnode.Selectable = true; //newnode.CheckBoxAlignment = DevComponents.AdvTree.eCellPartAlignment.NearCenter; //newnode.CheckBoxStyle = eCheckBoxStyle.CheckBox; //newnode.CheckBoxThreeState = false; //newnode.CheckBoxVisible = true; - newnode = NewAdvTreeNode("Accessory Sections", true, true); + newnode = NewAdvTreeNode("Word Sections", true, true); // C2020-010: Change Accessory Sections to Word Sections + wordSectionTreeNode = newnode; + wordSectionTreeNode.Enabled = !(tabSearchTypes.SelectedTab == tabTranSearch); advTreeStepTypes.Nodes.Add(newnode); foreach (StepDataRetval sdr in lstSrchStpTypes) { @@ -1854,10 +1860,10 @@ namespace Volian.Controls.Library n.Style = DevComponents.AdvTree.NodeStyles.Apple; if (sd == null) { - if (!lstCheckedStepTypesStr.Contains("Accessory Sections")) + if (!lstCheckedStepTypesStr.Contains("Word Sections")) { lstCheckedStepTypes.Add(0); //use zero to identify attachment search - lstCheckedStepTypesStr.Add("Accessory Sections"); + lstCheckedStepTypesStr.Add("Word Sections"); } } else @@ -1874,7 +1880,7 @@ namespace Volian.Controls.Library n.Style = null; if (sd == null) { - lstCheckedStepTypesStr.Remove("Accessory Sections"); + lstCheckedStepTypesStr.Remove("Word Sections"); lstCheckedStepTypes.Remove(0); } else