C2023-016 – Expanded Find/Replace to search through all of the step editor sections in the same procedure.
This commit is contained in:
@@ -570,7 +570,9 @@ namespace Volian.Controls.Library
|
||||
/// </summary>
|
||||
/// <param name="myItemInfo"></param>
|
||||
/// <returns></returns>
|
||||
public DisplayTabItem OpenItem(ItemInfo myItemInfo2, bool setFocus)
|
||||
// C2023-016 Added doingFindReplace where if true Word section will not be opened - used only when doing Find/Replace
|
||||
// We are not opening and searching inside Word sections, instead we just stop on the section title in the procedure editor (if a match is found in the title)
|
||||
public DisplayTabItem OpenItem(ItemInfo myItemInfo2, bool setFocus, bool doingFindReplace=false)
|
||||
{
|
||||
ItemInfo myItemInfo = myItemInfo2;
|
||||
|
||||
@@ -649,7 +651,8 @@ namespace Volian.Controls.Library
|
||||
|
||||
_MyBar = GetParentBar(myItemInfo); // Get the docking bar associated with this item.
|
||||
|
||||
if (myItemInfo.MyContent.MyEntry == null) // If it is not a Word document open in step editor
|
||||
// C2023-016 if a Word section and doing Find/Replace don't open Word section, position to section title in step editor instead
|
||||
if (myItemInfo.MyContent.MyEntry == null || doingFindReplace) // If it is not a Word document open in step editor
|
||||
{
|
||||
return OpenStepTabPage(myItemInfo, setFocus);
|
||||
}
|
||||
|
Reference in New Issue
Block a user