C2021-028 (RNO Only disable Word Section under Step Element) & B2021-075 (RNO Only needs ‘No matches found’
This commit is contained in:
parent
d4b2079cf4
commit
8dbdfe55de
@ -1684,6 +1684,7 @@ namespace Volian.Controls.Library
|
||||
null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 100)));
|
||||
this.cbxRnoOnlyRO.TabIndex = 8;
|
||||
this.cbxRnoOnlyRO.Text = "RNO Only";
|
||||
this.cbxRnoOnly.Click += CbxRnoOnly_Click;
|
||||
//
|
||||
// cbxRnoOnlyTrans
|
||||
//
|
||||
@ -1750,6 +1751,8 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
private DevComponents.DotNetBar.TabControl tabSearchTypes;
|
||||
|
@ -490,7 +490,8 @@ namespace Volian.Controls.Library
|
||||
//newnode.CheckBoxVisible = true;
|
||||
newnode = NewAdvTreeNode("WORD Sections", true, true); // C2020-010: Change Accessory Sections to Word Sections
|
||||
wordSectionTreeNode = newnode;
|
||||
wordSectionTreeNode.Enabled = !(tabSearchTypes.SelectedTab == tabTranSearch);
|
||||
// C2021-028: RNO Only search, disable Word section tree node
|
||||
wordSectionTreeNode.Enabled = !(tabSearchTypes.SelectedTab == tabTranSearch || cbxRnoOnly.Checked);
|
||||
advTreeStepTypes.Nodes.Add(newnode);
|
||||
foreach (StepDataRetval sdr in lstSrchStpTypes)
|
||||
{
|
||||
@ -1700,6 +1701,11 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
SearchResults = iil;
|
||||
// B2021-075 - put up none found message for RNO only
|
||||
if (SearchResults == null || SearchResults.Count == 0)
|
||||
{
|
||||
FlexibleMessageBox.Show("No Matches Found.", "Search");
|
||||
}
|
||||
}
|
||||
private void AddMessageForEmptyAnnotations()
|
||||
{
|
||||
@ -2161,7 +2167,12 @@ namespace Volian.Controls.Library
|
||||
Clipboard.SetDataObject(myDO);
|
||||
}
|
||||
}
|
||||
|
||||
private void CbxRnoOnly_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
// C2021-028: RNO Only search, disable Word section tree node:
|
||||
wordSectionTreeNode.Enabled = !(tabSearchTypes.SelectedTab == tabTranSearch || !cbxRnoOnly.Checked);
|
||||
if (!wordSectionTreeNode.Enabled) wordSectionTreeNode.Checked = false;
|
||||
}
|
||||
private void cmFndTxtPaste_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Need to check which combo box activated the context menu so that we know where to take/put selected text
|
||||
|
Loading…
x
Reference in New Issue
Block a user