From 85a971482eccbca32c8620c26d9a2132af062f44 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 6 Apr 2021 19:24:52 +0000 Subject: [PATCH] C2021-021 Change the title of the find/replace dialog base on if we allow Find and Replace or just Find. --- PROMS/Volian.Controls.Library/FindReplace.cs | 22 +++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/PROMS/Volian.Controls.Library/FindReplace.cs b/PROMS/Volian.Controls.Library/FindReplace.cs index 502f8f62..6e674035 100644 --- a/PROMS/Volian.Controls.Library/FindReplace.cs +++ b/PROMS/Volian.Controls.Library/FindReplace.cs @@ -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 + } } - } } \ No newline at end of file