C2021-021 Change the title of the find/replace dialog base on if we allow Find and Replace or just Find.

This commit is contained in:
John Jenko 2021-04-06 19:24:52 +00:00
parent 69bff04f78
commit 85a971482e

View File

@ -77,7 +77,6 @@ namespace Volian.Controls.Library
get { return _InApproved; }
set { _InApproved = value; }
}
public FindReplace()
{
InitializeComponent();
@ -443,15 +442,18 @@ namespace Volian.Controls.Library
}
public void ToggleReplaceTab(E_ViewMode vm)
{
if (vm == E_ViewMode.View)
{
if (tabReplace.IsSelected)
tabFind.PerformClick();
tabReplace.Visible = false;
}
else
tabReplace.Visible = true;
if (vm == E_ViewMode.View)
{
if (tabReplace.IsSelected)
tabFind.PerformClick();
tabReplace.Visible = false;
Text = "Find"; //C2021-021 change the dialog title
}
else
{
tabReplace.Visible = true;
Text = "Find and Replace";//C2021-021 change the dialog title
}
}
}
}